summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
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"];