PDA

View Full Version : How do I load a new UIViewController from the current one ?




aneuryzma
May 21, 2011, 10:16 AM
How do I load a new UIViewController from the current one ?

I have a timer, and after 3 seconds a new UIViewController should be loaded and a new view displayed on the screen.

I usually push new UIViewController using a UINavigationViewController, however, I was wondering if I really need it in order to pass from a UIVIewController to another one.

thanks



PhoneyDeveloper
May 21, 2011, 10:44 AM
Pushing a new view controller onto the navigation controller would be a common way to do this.

jnoxx
May 21, 2011, 02:57 PM
Depends, u could also put on a view, and add it as a subview, if it's just a small timer window. if it's a startup window, u could present a ModalViewController, and after 3 seconds dismiss it. there are alot of ways.

Let us know if u need help :)