Skip to content

Commit

Permalink
Fix infinite, recursive init call for subclass
Browse files Browse the repository at this point in the history
Fix infinite, recursive init call if a MMDrawerController subclass implements -init
  • Loading branch information
ersjoh committed Mar 30, 2015
1 parent 519883b commit b920fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
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 b920fee

Please sign in to comment.