iOS之Delegate

1、如果Delegate对象不是ViewController本身,则ViewController对象必须对Delegate具有强引用;因为delegate与dataSource都是assign类型的;

2、之所以声明为assign的,是为了避免循环引用。自定义delegate时也要注意这一点。

原文地址:https://www.cnblogs.com/sfce/p/4401451.html