load .xib problem.

Discussion in 'iOS Programming' started by knut, Mar 13, 2011.

  1. knut macrumors newbie

    Joined:
    Jun 30, 2009
    #1
    Hi All

    can you help me please with next problem.

    I have two .xib files .
    test1.xib and test2.xib which are using same viewcontrollers files. so
    at this moment my application is load test1.xlib file . how can I load test2.xib instead of test1.xib ?


    Thanks
     
  2. 38leinaD macrumors newbie

    Joined:
    Mar 13, 2011
    #2
    You can use UIViewController's
    Code:
    (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle
    Initializer.

    Initialize the view-controller with the nibName you want it to load.

    cheers,
    daniel
     

Share This Page