From 4129322d734c8a03ae49a173a12eeced79a6cc75 Mon Sep 17 00:00:00 2001 From: Joseph Heenan Date: Tue, 7 Jun 2016 16:19:18 +0100 Subject: 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. --- platform/ios/Classes/MuDocumentController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') 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; -- cgit v1.2.3