I'm using a UIViewController with some buttons, labels, etc which I need to change attributes of depending on the situation.
I'm looking to create an NSObject to control these elements based on an int in the View Controller. When a button is pressed the NSObject will deallocate, the int will change and the NSObject will re-instantiate using the new number creating a new view.
Does this make sense? If so do I set up the IBOutlets for the buttons/labels in the NSObject or in the UIViewController? How does the NSObject reference the buttons? How do I instantiate/deallocate the NSObject inside of the UIViewController to enact these changes?
Thank You!!