I have a view (View1, assigned to View1Controller) opened on my iPad. How can I get it to open View2 (View2Controller) and close itself… I am sure it’s dead simple but I’m managing popovers and can’t find something so simple. An animated transition would be preferable if possible.
Thanks for your help
Here’s a rough outline of one way you can accomplish this.
Let’s assume you have properties in your AppDelegate called
viewController1andviewController2(these should benonatomic, retainto make memory management easier).When you want to switch from
viewController1toviewController2you need to remove to do the followingOne of the easiest ways to inform the AppDelegate to switch views is to use the notification center.
Since you are retaining the view controllers in properties do not forget to release them in your
dealloc.Hope this helps you out.