28
¿Cómo se agrega texto de varias líneas a un UIButton?
Tengo el siguiente código... UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @"Long text string"; [targetButton addSubview:buttonLabel]; [targetButton bringSubviewToFront:buttonLabel]; ... la idea es que puedo tener texto de varias líneas para el botón, pero el texto siempre está oscurecido por la imagen de fondo del botón UIB. Una llamada de …
368
ios
cocoa-touch
uibutton
uikit