diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-12-07 20:54:46 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-12-08 19:03:34 -0800 |
commit | 3dbf93f4612d6736f8b8ba43b5eb6e7971632cfa (patch) | |
tree | 7f243f757c35ae15a49bdd7e4e7ede7d5adfcc63 | |
parent | 453176d3c18a547d6f44f10d0d15e3efe0f36723 (diff) | |
download | mupdf-3dbf93f4612d6736f8b8ba43b5eb6e7971632cfa.tar.xz |
ios: Use setRootViewController instead of addSubview.
Fixes warning at launch and autorotation not working on iOS 6.
-rw-r--r-- | ios/main.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"]; |