gpt4 book ai didi

ios - Xcode AMSlideMenu 在某些屏幕中禁用菜单

转载 作者:行者123 更新时间:2023-11-29 02:19:33 26 4
gpt4 key购买 nike

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com