Skip to content

Commit

Permalink
Merge pull request mutualmobile#357 from ersjoh/master
Browse files Browse the repository at this point in the history
Fix infinite, recursive init call for subclass
  • Loading branch information
kcharwood committed Apr 1, 2015
2 parents 519883b + b920fee commit 1b2fdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMDrawerController/MMDrawerController.m
Expand Up @@ -162,7 +162,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder{

-(instancetype)initWithCenterViewController:(UIViewController *)centerViewController leftDrawerViewController:(UIViewController *)leftDrawerViewController rightDrawerViewController:(UIViewController *)rightDrawerViewController{
NSParameterAssert(centerViewController);
self = [self init];
self = [super init];
if(self){
[self setCenterViewController:centerViewController];
[self setLeftDrawerViewController:leftDrawerViewController];
Expand Down

0 comments on commit 1b2fdc0

Please sign in to comment.