PegX / iphonewavefrontloader

Automatically exported from code.google.com/p/iphonewavefrontloader
0 stars 0 forks source link

Presented with White Screen, quit app and can see objects in background #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Application in simulator
2. Loaded objects are not displayed, instead a white screen is presented
3. Quit Application
4. Loaded objects can be seen briefly as application quits

What is the expected output? What do you see instead?
We want to see the loaded application objects

What version of the product are you using? On what operating system?
Downloaded 15 July 2009

Please provide any additional information below.
Target OS is iPhone 3.0
Reference Wavefront_OBJ_LoaderAppDelegate.m, line 22
window = [[UIWindow alloc] initWithFrame:rect];
I don't believe that this line is required. The Window is automatically 
initialised when the NIB/XIB is loaded. 
Commenting out the line has produced a successful run of the application. 
No white screen and I can clearly see the loaded objects.

Great project by the way, thank you.
I have applied many of the changes in the comments here and have a new 
package if you wish for refreshing the project. Contact me directly if you 
desire.

Original issue reported on code.google.com by dgwilson65@gmail.com on 16 Jul 2009 at 8:13

GoogleCodeExporter commented 9 years ago
if you comment out the row 22 

- (void)applicationDidFinishLaunching:(UIApplication*)application
{
    CGRect  rect = [[UIScreen mainScreen] bounds];

    //window = [[UIWindow alloc] initWithFrame:rect];

    GLViewController *theController = [[GLViewController alloc] init];

it works.

Original comment by ander...@gmail.com on 16 Mar 2010 at 9:21