iOSInterviewQuestions
iOSInterviewQuestions copied to clipboard
第7题,在代理里定义属性,好像没有使用场景吧
在 protocol 中使用 property 只会生成 setter 和 getter 方法声明,我们使用属性的目的,是希望遵守我协议的对象能实现该属性
有! 之前有在按钮上绑定一个用户的数据,或者在其他什么控件上绑定某model