aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

how to hidden menuLeftBarItem in navigationBar #197

Open DmitryShapovalov opened 8 years ago

DmitryShapovalov commented 8 years ago

Tell me please, how to hide -barButtonItemForMenu in viewController.navigationBar ?

SCLDev commented 8 years ago

Do you mean how to not show the menu button? because if that's what you want, you can set it using the delegate method. Check the documentation but to save some clicks, the left one is:

-(BOOL)slideNavigationControllerShouldDisplayLeftMenu{ return YES; }

Hope it helped.

Sep

DmitryShapovalov commented 8 years ago

thanks for the answer! I need to hide the icon "menu" on the navigation bar (LeftBarItem), but the menu should work with swype

SCLDev commented 8 years ago

can you [navigationbar setRighBarButtonItem:nil]?

SCLDev commented 8 years ago

Leave the swipe gesture on, but set the button to nil. Does that work?

DmitryShapovalov commented 8 years ago

[navigationbar setRighBarButtonItem:nil] - not worked :(

in example project:

import "FriendsViewController.h"

@implementation FriendsViewController

@end

Help me, please, how to hide button "Menu" (on left side LeftBarButtonItem)