码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-12-13 21:52:17      阅读:814      评论:0      收藏:0      [点我收藏+]

标签:ios

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

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

解决方法是在头文件中

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


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

标签:ios

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!