aquí es mi código¿es posible ajustar la posición x, y titleLabel de UIButton?
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)];
[btn setTitle:[NSString stringWithFormat:@"Button %d", i+1] forState:UIControlStateNormal];
[btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside];
btn.titleLabel.frame = ???
Por favor seleccione la otra respuesta para que podamos eliminar el uno muy negativo. O bien, explica por qué has hecho esto. – tchrist
¿Por qué no se acepta esa respuesta? –
Esto es todo lo que necesita http://stackoverflow.com/questions/18484747/uibutton-titleedgeinsets –