Skip to content
New issue

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

attachview 相关 #48

Open
iOSyifeng opened this issue Jul 16, 2021 · 2 comments
Open

attachview 相关 #48

iOSyifeng opened this issue Jul 16, 2021 · 2 comments

Comments

@iOSyifeng
Copy link

传入 attachview 弹窗试图本身的按钮响应全部失效 点击就dismiss了啊

@choiceyou
Copy link
Owner

你可以参考一下:FWPopupViewSwiftDemo中的 FWMenuViewDemoVC类中的menuView1

@Charlin0701
Copy link

我的弹框视图设置了attachView ,在弹框视图中存在 UICollectionView 的话,会在点击 cell 的时候不响应didSelectItemAt:方法。我的解法是在弹框视图中重写了gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch)方法,并且走touch.view?.isDescendant(of: myCollectionView)判断点击的view 是否为我的 collectionView 实例,如果是则return false禁用手势

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants