Xcode: ViewController.xib or Main.xib

Discussion in 'iOS Programming' started by kingthong, Oct 6, 2010.

  1. macrumors member

    Joined:
    Sep 20, 2010
    Location:
    Somewhere but not here.
    #1
    Hi,

    i'm reading the excellent Apress book on Beginning IPhone Development. in their examples, they always build their interface by double-clicking the MyProgramViewController.xib.

    But when i tried the same and ran the Iphone Simulator later, the interface loaded from MainWindow.xib. i referred few online guides and they'd modified MainWindow.xib itself.

    I'm i missing something here? i havent grasped the concept entirely but i'd like to know where the file loads from? and when i should modify the ViewController.xib and when i should modify the MainWindow.xib.

    Hope i was clear in explaining my problem.
    Thanks!
     
  2. macrumors 6502

    87vert

    Joined:
    Oct 7, 2008
    Location:
    Pittsburgh, PA
    #2
    you should modify the viewcontroller.xib. The main window would be for using tab bars or navigation bars.
     
  3. thread starter macrumors member

    Joined:
    Sep 20, 2010
    Location:
    Somewhere but not here.
    #3
    alrighty. Thanks for the help!
     

Share This Page