28
Como você adiciona texto de várias linhas a um UIButton?
Eu tenho o seguinte código... UILabel *buttonLabel = [[UILabel alloc] initWithFrame:targetButton.bounds]; buttonLabel.text = @"Long text string"; [targetButton addSubview:buttonLabel]; [targetButton bringSubviewToFront:buttonLabel]; ... a ideia é que eu posso ter texto com várias linhas para o botão, mas o texto é sempre obscurecido pela backgroundImage do UIButton. Uma chamada de log para …
368
ios
cocoa-touch
uibutton
uikit