1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Xcode: ViewController.xib or Main.xib

Discussion in 'iPhone/iPad Programming' started by kingthong, Oct 6, 2010.

  1. macrumors member


    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.
  2. macrumors 6502


    you should modify the viewcontroller.xib. The main window would be for using tab bars or navigation bars.
  3. macrumors member

    alrighty. Thanks for the help!

Share This Page