diff --git a/MMDrawerController/MMDrawerController.m b/MMDrawerController/MMDrawerController.m index 52d79f61..42acdaae 100644 --- a/MMDrawerController/MMDrawerController.m +++ b/MMDrawerController/MMDrawerController.m @@ -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];