今天有个需求:
在tableView上 点击cell上的按钮 弹一个view 然后点击view上的按钮 tableview刷新 这个view消失
我用的是代理,在view上定义代理

然后按钮的点击事件调用

在tableview里遵循代理



感觉是没有问题的
但是:这行代码一直不执行

我是在cell里弹得view

当我在tableview里遵循代理的时候 重新初始化了一个
BKPMLineView
对象,所以是接收不到代理的,在cell里设置就OK啦
记录下这个傻逼问题
今天有个需求:
在tableView上 点击cell上的按钮 弹一个view 然后点击view上的按钮 tableview刷新 这个view消失
我用的是代理,在view上定义代理
BKPMLineView
对象,所以是接收不到代理的,在cell里设置就OK啦记录下这个傻逼问题
本文标题:关于Delegate 遇到的问题
本文链接:https://www.haomeiwen.com/subject/imqkvftx.html
网友评论