Add Application and View XIB to project.

Discussion in 'iPhone/iPad Programming' started by pashik, Aug 28, 2008.

  1. macrumors member

    #1
    Hi.
    i got application without any xib in it and i'd like to remake it with xib.
    So i want to receive view-based application.

    So i added Application window xib and View xib, wrote correct controllers classes named accordingly, connect all references in IB (controller, delegate, window). But when i run application view is not shown - just black screen.

    I tried to copy/paste code and double check all references from empty created View based application but with same result.

    what i'm doing wrong?
     
  2. macrumors 6502a

    #2
    Are you adding your controller's view to your window as a subview?

    Code:
    [window addSubview:myViewController.view];
    
     
  3. macrumors member

    #3
    Yes, this code is run in applicationDidFinishLaunching( UIApplication *) application
     
  4. macrumors member

    #4
    there wasn't "Main nib file base name" key in Info.plist
     

Share This Page