Vaggelhs_ Posted September 18, 2009 Share Posted September 18, 2009 It sems to be running ok but I always get a black screen. The Menu Button is working and exits the application. No compile error or warning. I can't move on my iPhone app development, could you please help? Thanks! Link to comment Share on other sites More sharing options...
Poco Posted September 18, 2009 Share Posted September 18, 2009 Most likely cause is that you've not added a subview to your window. iPoco Link to comment Share on other sites More sharing options...
jusanotheruser Posted September 25, 2009 Share Posted September 25, 2009 sub view? what's that? I'm having the same problem. edit: Btw, I've only tried two sample code apps; not my own yet. Link to comment Share on other sites More sharing options...
Poco Posted September 25, 2009 Share Posted September 25, 2009 If you are using sampe code that is confirmed to work and it isn't, then there is an issue :s. A subview is essentially a view in a view. View based applications all have a window in the main xib file. Views can be added to this as needed. In my case I added a subview called listNavigationController which as the name descibes was a navigation controller. I'm not familiar if you can do this completely through IB so I will look into that when I get the chance. It would make sense if you could add a view directly to the window by simply adding it in IB. If the code you are using adds a subview through code make sure that the connections made in IB are actually made. - (void)applicationDidFinishLaunching:(UIApplication *)application { // Configure and show the window [window addSubview:[listNavigationController view]]; [window makeKeyAndVisible]; } iPoco Link to comment Share on other sites More sharing options...
Recommended Posts