登录 立即注册
金钱:

Code4App-iOS开发-iOS 开源代码库-iOS代码实例搜索-iOS特效示例-iOS代码例子下载-Code4App.com

滑动手势冲突[复制链接]

[i=s] 本帖最后由 其实我是个演员 于 2018-12-19 16:32 编辑 [/i]

111111111

已解决 一条咸鱼_ 666查看 · 3回复 · 2018-12-18 11:01 有用(0
共3个回答
一条咸鱼_ 2018-12-18 12:46 回复

求个思路,大神们在哪里.

coder_007 2018-12-19 11:14 回复

如你知道手势有冲突就要考虑去掉一个,具体看手势api

// called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies
// return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer
//
// note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES

  • (BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer )otherGestureRecognizer NS_AVAILABLE_IOS(7_0);

  • (BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer )otherGestureRecognizer NS_AVAILABLE_IOS(7_0);

NotMUHighIOS 2019-1-7 11:12 回复

之前遇到一个问题,点击vc.view收回键盘,如果vc.view上还有个tabview,那么点击cell的手势和self.view的点击手势就会有冲突。你遇到的什么问题描述一下?

需要登入后才可以评论 登录 | 立即注册
*滑动验证:
关闭

每日头条

通过邮件订阅最新 Code4App 信息
上一条 /4 下一条
联系我们
关闭
合作电话:
13802416937
Email:
435399051@qq.com
商务市场合作/投稿
问题反馈及帮助
联系我们

广告投放| 广东互联网违法和不良信息举报中心|中国互联网举报中心|Github|申请友链|手机版|Code4App ( 粤ICP备15117877号-1 )

返回顶部 返回版块