1.建立model时多加一个cell点击
image.png
2.model赋值时写好对应的方法名
image.png
3.cell点击
image.png
SEL selector = NSSelectorFromString(perModel.cellClick);
((void (*)(id, SEL))[self methodForSelector:selector])(self,selector);
1.建立model时多加一个cell点击
2.model赋值时写好对应的方法名
3.cell点击
SEL selector = NSSelectorFromString(perModel.cellClick);
((void (*)(id, SEL))[self methodForSelector:selector])(self,selector);
本文标题:ios 设置中cell每个点击方法通过SEL实现
本文链接:https://www.haomeiwen.com/subject/zzxslctx.html
网友评论