summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Heenan <joseph@emobix.co.uk>2016-06-07 16:19:18 +0100
committerJoseph Heenan <joseph@emobix.co.uk>2016-06-09 10:57:47 +0100
commit4129322d734c8a03ae49a173a12eeced79a6cc75 (patch)
tree18d169c80eeb4e2bc2a647b0917573d0c6ca5f9f
parentf53d79f0afd39d47f173530c59a00eb16b12bcba (diff)
downloadmupdf-4129322d734c8a03ae49a173a12eeced79a6cc75.tar.xz
iOS: Fix a bad call to super in MuDocumentController.m
We're a subclass of UIViewController, so must call one of UIViewController's designated initialisers.
-rw-r--r--platform/ios/Classes/MuDocumentController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m
index 2ae106fb..dfc5823f 100644
--- a/platform/ios/Classes/MuDocumentController.m
+++ b/platform/ios/Classes/MuDocumentController.m
@@ -160,7 +160,7 @@ static void saveDoc(const char *current_path, fz_document *doc)
- (id) initWithFilename: (NSString*)filename path:(NSString *)cstr document: (MuDocRef *)aDoc
{
- self = [super init];
+ self = [super initWithNibName:nil bundle:nil];
if (!self)
return nil;