Reputation: 659
I have a view on iOS with a bunch of UI widgets like sliders and buttons. Imagine that one of the controls changes a few of the buttons displayed to be a different set of buttons. What is the best way to handle this? Is it possible to duplicate my current view, change some of the buttons around and then point to the new one when a button is pressed?
Upvotes: 0
Views: 58
Reputation: 9768
Just create all of the controls you want and keep references to them. Then set view.hidden = YES on the ones you want to hide and view.hidden = NO on the ones you want to show.
Upvotes: 1