Updated Branches: refs/heads/master 0c63362b9 -> af52dafa5
[CB-4539] Cannot create CDVViewController in Storyboard Implemented `initWithCoder:` method to call `__init` like other init methods. This will be called when the ViewController is used in a storyboard. Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/af52dafa Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/af52dafa Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/af52dafa Branch: refs/heads/master Commit: af52dafa548bca435d9524f1f02372515e537616 Parents: 0c63362 Author: Brad Fol <[email protected]> Authored: Thu Sep 5 17:41:33 2013 -0700 Committer: Andrew Grieve <[email protected]> Committed: Fri Sep 6 14:55:22 2013 -0400 ---------------------------------------------------------------------- CordovaLib/Classes/CDVViewController.m | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/af52dafa/CordovaLib/Classes/CDVViewController.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m index de1dc5a..0fc0b5c 100644 --- a/CordovaLib/Classes/CDVViewController.m +++ b/CordovaLib/Classes/CDVViewController.m @@ -94,6 +94,13 @@ return self; } +- (id)initWithCoder:(NSCoder *)aDecoder +{ + self = [super initWithCoder:aDecoder]; + [self __init]; + return self; +} + - (id)init { self = [super init];
