IOS development notes

来源:互联网 发布:价值观不同的体现知乎 编辑:程序博客网 时间:2024/05/17 03:25

ios Compile Warning:

@1:

Sending 'ViewController *const __strong' to parameter of incompatible type 'id<***Delegate>'

The solution is to add the corresponding <protocolName> to the rear of ViewController():

 

  @interface ViewController () <protocolName>