首页 > 数据库技术 > 详细

auto property synthesis will not synthesize proterty ;it will be implementedby its superclass, use @

时间:2015-06-12 10:07:09      阅读:384      评论:0      收藏:0      [点我收藏+]
   Auto property synthesis will not synthesize property ‘title‘; it will be implemented by its superclass, use @dynamic to acknowledge intention

    这是说编译器自动给属性title合成getter和setter的时候将会在它的父类上实现,也就是说坑爹的xcode6.3升级后ios8.3版本的UIViewController里有一个title属性,现在它不知道到底是哪一个title.

    这不是我们想要的,所以添加 @dynamic告诉编译器这个属性是动态的,动态的意思是等你编译的时候就知道了它只在本类合成;

    解决:

   在.m文件里

@dynamic title;

auto property synthesis will not synthesize proterty ;it will be implementedby its superclass, use @

原文:http://blog.csdn.net/darongzi1314/article/details/46467725

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