How do I load a new UIViewController from the current one ?

Discussion in 'iOS Programming' started by aneuryzma, May 21, 2011.

  1. macrumors newbie

    Joined:
    May 9, 2011
    #1
    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
     
  2. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    Pushing a new view controller onto the navigation controller would be a common way to do this.
     
  3. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #3
    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 :)
     

Share This Page