I’m still finding my way around the iPhone SDK, I’ve followed some good tutorials but I am trying to find some simple solutions for the time being.
Right now I want to knock up a simple app that will share the same UIViewController.
I have created multiple views in Interface Builder and given them unique names in the Inspector (Identity view – Interface Builder Identity).
Assuming I’ve placed a button and written an action called when the button is pressed. My simple question is within xcode, how do I call the one of the other views programmatically?
Many thanks
I would suggest you use multiple view controllers when trying to control multiple views. Wrap them in a UINavigationController to make your life easier.
With that said, you want to create IBOutlets in your main controller, and hook each one up to one of your views. Then, when you’re ready, you can
Note, this presupposes you’re using a third, separate view as your controller’s main view.