iphone3g problem!!!!

iphone3g problem!!!!
0.0 0


viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
viewController.wantsFullScreenLayout = YES;
viewController.view = __glView;
// Set RootViewController to window
window.rootViewController = viewController;

why my iphone3g at this line " window.rootViewController = viewController;" crash???


Any error log?
I think, maybe on iphone3g, the window doesn’t have the class member of rootViewController.


I change It to this, It is runing

//not 3g
if(CUtility::GetDeviceType() != 3)
window.rootViewController = viewController;
[window addSubview:__glView];

[[UIApplication sharedApplication] setStatusBarHidden: YES];

[window makeKeyAndVisible];


another problem occur! phone3d can not push inputbox? :frowning:


Oh, I find the same problem by cocos2d. At the end, that is because of the height version 4.x !
then I do these
if( [[[UIDevice currentDevice] systemVersion] compare:@“4.0” options:NSNumericSearch] == NSOrderedAscending )
[window addSubview:viewController.view];
window.rootViewController = viewController;


Yeap, the implementation of inputbox uses new feature of version 4.x.