Help - Search - Members - Calendar
Full Version: IPhone simulator of SDK not functioning
InsanelyMac Forum > Apple World > Mac Programming and Development
Evangelos Chompis
Seems to be running ok but i always get a black screen. Menu Button is working and exits the application.
No compile error or warning.
I cant move on my i phone app development.

Please help!! Thank you everyone!
ipoco
Most likely cause is that you've not added a subview to your window.

iPoco
jusanotheruser
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.
ipoco
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.
CODE
- (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Configure and show the window
    [window addSubview:[listNavigationController view]];
    [window makeKeyAndVisible];
}


iPoco
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.