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

TestTableCell中的ybht_didSelectedAtIndexPath方法,能把事件传递给VC吗? #6

Open
dengchaojie opened this issue Nov 28, 2019 · 3 comments

Comments

@dengchaojie
Copy link

例如,常见这种情况:点击一个cell,push到另外一个VC。
目前没在你的repo里找到可行的方式。请指导一下...

@indulgeIn
Copy link
Owner

通过 Cell 与外界的桥梁 —— CellModel 来传递

@dengchaojie
Copy link
Author

嗯嗯,可以给TestTableModel定义一个block属性或者protocol属性,来传递点击事件。在VC,需要判断row的值,来push到不同的其他VC。

@xjh093
Copy link

xjh093 commented Aug 7, 2020

JHPP,了解一下。
https://github.com/xjh093/JHPP

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