Add Application and View XIB to project.

Discussion in 'iOS Programming' started by pashik, Aug 28, 2008.

  1. macrumors member

    Jul 16, 2008
    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

    Nov 9, 2007
    Colchester, UK
    Are you adding your controller's view to your window as a subview?

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

    Jul 16, 2008
    Yes, this code is run in applicationDidFinishLaunching( UIApplication *) application
  4. thread starter macrumors member

    Jul 16, 2008
    there wasn't "Main nib file base name" key in Info.plist

Share This Page