We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
描述bug present出一个模态控制器(非fullScreen),控制器中的tableView下拉刷新总是触发系统的dismiss手势,就算将系统dismiss手势禁掉或者设置self.isModalInPresentation = true,只要tableView滑倒顶部再继续下拉,还是会触发dismiss手势效果,而不是触发tableView的下拉刷新。但是如果用系统的UIRefreshControl,滑到顶部后是可以触发下拉刷新的。(实际测试后是tableView.panGestureRecognizer导致的dismiss效果)
必现/偶发? 必现
怎么样重现这个bug
let vc = GestureTestViewController() let navi = UINavigationController(rootViewController: vc) self.present(navi, animated: true)
let pv = self.navigationController?.presentationController let recognizers = pv?.presentedView?.gestureRecognizers let dismissPan = recognizers?.first(where: { $0 is UIPanGestureRecognizer }) as? UIPanGestureRecognizer recognizers?.forEach({ $0.isEnabled = false })
3.给tableView添加刷新头
tableView.mj_header = CustomRefreshHeader(refreshingBlock: {[weak self] in print("....") })
4.执行下拉刷新,触发的是dismiss效果,而不是刷新效果
你期望的结果是什么? 希望tableView滑到顶部后,是触发下拉刷新,而不是控制器的dismiss
截图 无
运行环境
额外的 最好能提供出现bug的Demo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
描述bug
present出一个模态控制器(非fullScreen),控制器中的tableView下拉刷新总是触发系统的dismiss手势,就算将系统dismiss手势禁掉或者设置self.isModalInPresentation = true,只要tableView滑倒顶部再继续下拉,还是会触发dismiss手势效果,而不是触发tableView的下拉刷新。但是如果用系统的UIRefreshControl,滑到顶部后是可以触发下拉刷新的。(实际测试后是tableView.panGestureRecognizer导致的dismiss效果)
必现/偶发?
必现
怎么样重现这个bug
3.给tableView添加刷新头
4.执行下拉刷新,触发的是dismiss效果,而不是刷新效果
你期望的结果是什么?
希望tableView滑到顶部后,是触发下拉刷新,而不是控制器的dismiss
截图
无
运行环境
额外的
最好能提供出现bug的Demo
The text was updated successfully, but these errors were encountered: