In IB, I have a view with a UIButton of type Custom, it has no image, and the Title is set to "#placeholder"
The view is attached to a class that provides IBOutlet and IBAction buttons for a button.
I set the button title as follows: ViewClass.ButtonOutlet.titleLabel.text = @"%@",stringifiedVariable; whenever I need.
This is working fine. However, when I click the button, the title titleLabel.text returns to "#placeholder".
I tried to uncheck the box underlined to adjust the image in the Drawing section (attributes tab) in the Inspector, but everything was still.
Can this change be prevented? or is there a better model i should use?
objective-c cocoa-touch ipad
Luke mcneice
source share