gpt4 book ai didi

ios - iOS 中导航 Controller 的点击手势 (MMDrawerController)

转载 作者:行者123 更新时间:2023-11-30 11:31:26 25 4
gpt4 key购买 nike

我正在构建一个我已经使用过的应用程序 MMDrawerController作为我的幻灯片导航 Controller 。

我已经浏览了他们的文档,但没有找到任何特定于手势的代码。你能帮我一下吗?

最佳答案

  1. 您可以使用 Controller 中手势的 UIGestureRecognizerDelegate 将 UITapGestureRecognizer 添加到导航栏。重写 funcgestureRecognizerShouldBegin,然后计算器大小比可以执行点击手势(忽略左、右栏项目)->Reture true
  2. 导航栏的自定义标题:导航项.titleView = otherView并向该 View 添加操作

关于ios - iOS 中导航 Controller 的点击手势 (MMDrawerController),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50207971/

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