I am working on another person’s code. He has created some UIButtons in a UIView in the interface builder(not programmatically).
But now the UI has changed slightly. When the view loads, based on some conditions, some buttons have to be disabled/enabled. I am a bit confused about, whether to alter the code by creating buttons dynamically and disable the buttons based on conditions, or is there any other way like referring the button by tag and changing its property. Sounds like a silly question, I am still working on improving my basic skills in Iphone app development.
I am working on another person’s code. He has created some UIButtons in a
Share
Create an
IBOutletto theUIButton, then you can do things like: