https://github.com/SocialObjects-Software/AMSlideMenu
在某些屏幕中需要禁用滑动菜单并实现其他操作的 UInavigationbar 按钮
这可能吗?
谢谢
最佳答案
要将菜单按钮设置为您自己的,请将以下代码放在 View Controller 中:
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back_button"]
style:UIBarButtonItemStylePlain
target:self
action:@selector(action:)];
self.navigationController.navigationBar.topItem.leftBarButtonItem = anotherButton;
要在 View Controller 中禁用平移手势,只需导入“UIViewController+AMSlideMenu.h”并调用[self disableSlidePanGestureForLeftMenu];
关于ios - Xcode AMSlideMenu 在某些屏幕中禁用菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28326539/