Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

UITableView嵌入 MMPopupView中后必须长按UITableViewCell后UITableView中的didSelectRowAtIndexPath 方法才会执行 #9

Closed
yaochangjun opened this issue Nov 12, 2015 · 3 comments

Comments

@yaochangjun
Copy link

UITableView嵌入 MMPopupView中后必须长按UITableViewCell后UITableView中的didSelectRowAtIndexPath 方法才会执行

@yaochangjun yaochangjun changed the title UITableView嵌入 MMPopupView中后无法执行didSelectRowAtIndexPath 方法 UITableView嵌入 MMPopupView中后必须长按UITableViewCell后UITableView中的didSelectRowAtIndexPath 方法才会执行 Nov 12, 2015
@yaochangjun
Copy link
Author

暂解决方法:在UITableViewCell中添加一个UIButton来触发事件,可能是触发优先级的问题造成无法在单击的情况下执行didSelectRowAtIndexPath

@adad184
Copy link
Owner

adad184 commented Nov 12, 2015

是这样的 UITableView也是UIScrollView UIScrollView非常的特殊 直接把view添加UIScrollView会一些问题 所以不建议这样做 建议把attachedView设置为UITableView的superView.

@adad184
Copy link
Owner

adad184 commented Nov 12, 2015

我换了demo 你可以看下最新的demo

@adad184 adad184 closed this as completed Nov 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants