mmdrawercontroller

Detect when the drawer is closed while using MMDrawerController

百般思念 提交于 2019-12-13 15:53:40
问题 Is there any way we can detect when the drawer is closed by dragging the center container? I wish to perform certain actions everytime the drawer is closed.. 回答1: You can use -(void)setGestureCompletionBlock:(void(^)(MMDrawerController * drawerController, UIGestureRecognizer * gesture))gestureCompletionBlock; to set a callback block to be notified when a gesture is completed. In this block, query the drawerController to know what is currently open. /** Sets a callback to be called when a

Using MMDrawer only in sub navigation view

梦想与她 提交于 2019-12-11 12:43:15
问题 I'm new to swift and iOS programming. Recently, I was exploring Drawer options and tried MMDrawer tutorial as explained in this link. I followed it step by step and it works great in a single view. ie, app loads to central view and I can swipe right / left to access drawer controllers. Now, I want to add a tab bar controller before my current view, ie, hierarchy is tab view controller [tab 1]---> Nav Controller --> drawer central view (swipe action takes place in here) [tab 2]---> Nav

MMDrawerController can't close drawer

依然范特西╮ 提交于 2019-12-11 11:34:43
问题 I'm trying to use MMDrawerController in my application, but I can't get the side drawer to close with gestures on the center view. I've used MMDrawerController somewhere else in my app with great success, but can't figure out why its not working in this case. The top-level View Controller is a UINavigationController, whose default view controller is the MasterViewController (source below). This class extends MMDrawerController and configures the view for what I want (center and right, close

swift MMDrawerController: want to change rootViewController

女生的网名这么多〃 提交于 2019-12-07 19:05:39
问题 I am using MMDraweController. It work perfectly. I have problem with rootViewController. When app starts it load loginViewController. So I dont want side bar menu there (loginViewController doesnt have any navigation controller). My problem is using code below the app starts from viewController, not loginViewController. How can I use login page with no side bar menu and viewController with side bar? var rootViewController = self.window!.rootViewController let mainStoryBoard: UIStoryboard =

swift MMDrawerController: want to change rootViewController

落花浮王杯 提交于 2019-12-06 10:16:44
I am using MMDraweController. It work perfectly. I have problem with rootViewController. When app starts it load loginViewController. So I dont want side bar menu there (loginViewController doesnt have any navigation controller). My problem is using code below the app starts from viewController, not loginViewController. How can I use login page with no side bar menu and viewController with side bar? var rootViewController = self.window!.rootViewController let mainStoryBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil) var centerViewController = mainStoryBoard