No. This is for a side drawer. You never need logic to get the center. Just call self.centerViewController.


The center is not a drawer side.
—
Sent from Mailbox for iPhone

On Sat, May 11, 2013 at 10:14 PM, Lars Anderson <notifications@github.com>
wrote:

>> @@ -888,6 +852,17 @@ -(NSTimeInterval)animationDurationForAnimationDistance:(CGFloat)distance{
>>      return duration;
>>  }
>>  
>> +-(UIViewController*)sideDrawerViewControllerForSide:(MMDrawerSide)drawerSide{
>> +    UIViewController * sideDrawerViewController = nil;
>> +    if(drawerSide == MMDrawerSideLeft){
>> +        sideDrawerViewController = self.leftDrawerViewController;
>> +    }
>> +    else if(drawerSide == MMDrawerSideRight){
>> +        sideDrawerViewController = self.rightDrawerViewController;
>> +    }
> Hm. _Should_ it be an enum, then? It would make it easier to get the center controller in a central method.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mutualmobile/MMDrawerController/pull/10/files#r4184756