From 3dbf93f4612d6736f8b8ba43b5eb6e7971632cfa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 7 Dec 2012 20:54:46 +0100 Subject: ios: Use setRootViewController instead of addSubview. Fixes warning at launch and autorotation not working on iOS 6. --- ios/main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ios') diff --git a/ios/main.m b/ios/main.m index 0f80505d..9478af49 100644 --- a/ios/main.m +++ b/ios/main.m @@ -1457,7 +1457,7 @@ static UIImage *renderTile(struct document *doc, int number, CGSize screenSize, window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; [window setBackgroundColor: [UIColor scrollViewTexturedBackgroundColor]]; - [window addSubview: [navigator view]]; + [window setRootViewController: navigator]; [window makeKeyAndVisible]; filename = [[NSUserDefaults standardUserDefaults] objectForKey: @"OpenDocumentKey"]; -- cgit v1.2.3