Skip to content

Commit

Permalink
Minor Code Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Aug 14, 2013
1 parent 7fc0f69 commit 1fbb1b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,18 @@ @implementation MMDrawerController

#pragma mark - Init

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
[self commonInit_MMDrawerController];
[self commonSetup];
}
return self;
}

- (id)initWithCoder:(NSCoder *)aDecoder {
- (id)initWithCoder:(NSCoder *)aDecoder{
self = [super initWithCoder:aDecoder];
if (self) {
[self commonInit_MMDrawerController];
[self commonSetup];
}
return self;
}
Expand All @@ -168,8 +168,7 @@ -(id)initWithCenterViewController:(UIViewController *)centerViewController right
return [self initWithCenterViewController:centerViewController leftDrawerViewController:nil rightDrawerViewController:rightDrawerViewController];
}

-(void)commonInit_MMDrawerController
{
-(void)commonSetup{
[self setMaximumLeftDrawerWidth:MMDrawerDefaultWidth];
[self setMaximumRightDrawerWidth:MMDrawerDefaultWidth];

Expand Down

0 comments on commit 1fbb1b9

Please sign in to comment.