PDA

View Full Version : Add Application and View XIB to project.




pashik
Aug 28, 2008, 06:23 AM
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?



Luke Redpath
Aug 28, 2008, 07:40 AM
Are you adding your controller's view to your window as a subview?


[window addSubview:myViewController.view];

pashik
Aug 28, 2008, 07:56 AM
Are you adding your controller's view to your window as a subview?


[window addSubview:myViewController.view];


Yes, this code is run in applicationDidFinishLaunching( UIApplication *) application

pashik
Aug 28, 2008, 09:06 AM
there wasn't "Main nib file base name" key in Info.plist