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

时间:2014-12-13 21:51:40   收藏:0   阅读:1632

iphone开发出现警告:Sending ‘ViewController *const __strong‘ to parameter of incompatible type ‘id<***Delegate>‘

原因是没有在头文件实现相应协议。

解决方法是在头文件中

@interface 一行后面加上 <协议名>


原文:http://blog.csdn.net/liyun123gx/article/details/41913559

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!