summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-12-07 20:54:46 +0100
committerRobin Watts <robin.watts@artifex.com>2012-12-08 19:03:34 -0800
commit3dbf93f4612d6736f8b8ba43b5eb6e7971632cfa (patch)
tree7f243f757c35ae15a49bdd7e4e7ede7d5adfcc63 /ios
parent453176d3c18a547d6f44f10d0d15e3efe0f36723 (diff)
downloadmupdf-3dbf93f4612d6736f8b8ba43b5eb6e7971632cfa.tar.xz
ios: Use setRootViewController instead of addSubview.
Fixes warning at launch and autorotation not working on iOS 6.
Diffstat (limited to 'ios')
-rw-r--r--ios/main.m2
1 files changed, 1 insertions, 1 deletions
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"];