I've created a MMDrawerController within my app delegate file and I'm having trouble trying to toggle open the left drawer from an action within the center view. Is this a possible thing to do?
Asked
Active
Viewed 721 times
1 Answers
1
You can use this code in click event of your center view button.
[self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];
This mm_drawerController object is your MMDrawer object.

Ajay Gabani
- 1,168
- 22
- 38
-
If I've initialised the mm_drawerController object in my App Delegate, how do I access it from within the centre view? – CrackerBarrelKid55 Jul 16 '16 at 23:56
-
1by replacing self.mm_drawerController with objAppDelegate.mm_drawerController where objAppDelegate your app delegate object. – Ajay Gabani Jul 18 '16 at 03:49
-
What if I initialise it in an UIViewController? – Ne AS Jun 16 '17 at 16:12
-
If you created private method than you can access it using class object and if public than you can access using class name for that view-controller. Note: you can not access class variables in public method. – Ajay Gabani Jun 17 '17 at 03:47