实例的结构是这样的
myUIViewControlelr -> tableView -> myUITableViewCell -> myCustomeView
其中 myCustomeView 是 myUITableViewCell.contentView的subview
我需要把myCustomeView的一个值回传到myUIViewControlelr,而且要调用myUIViewControlelr的一个方法
我现在的做法是通过一个弱连接把实例一层一层的传下去,我觉得这个方法非常麻烦,而且不优雅,请问有没有好的办法来实现
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这个看上去是4层,实际上只有两层啊
myUIViewControlelr -> myUITableViewCell
从cell传回ViewController就好了,实际上View不应该做数据存储吧