iphone - UIButton setText programmatically -


I have about 10 UIButtons on the xib file and want to set program program

You can try to assign a separate tag for every button in the interface builder.

(or if you need that same tag) and then use the following code [myview view details: I]; [MyButton setTitle: @ "My Text" forState: UIControlStateNormal]; }


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -