首页 > 其他 > 详细

type 'simple Class' does not conform to protocol 'Example Protocol'错误

时间:2014-11-04 11:06:41      阅读:208      评论:0      收藏:0      [点我收藏+]

在看swift教程中“接口和扩展”这小部分。在编写时提示“type ‘simple Class‘ does not conform to protocol ‘Example Protocol‘”的错误,原因是simpleClass没有完全实现protocol中定义的方法。检查了下代码,原来是自己把方法名给写错了。

mutating 只针对 struct 和 enum  。

type 'simple Class' does not conform to protocol 'Example Protocol'错误

原文:http://blog.csdn.net/quanqinyang/article/details/40780309

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!