I'm trying to update an iOS app written 6 years ago using
4DRoom_v3[2360:42863] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
glView.multipleTouchEnabled = TRUE;
glView.animationFrameInterval = 1.0/40;
Create a view controller and add your glview as subview:
UIViewController* vc = [[UIViewController alloc]initWithNibName:nil bundle:nil]; [vc.view addSubview:glview]; window.rootViewController = vc;