您的位置:首页 > 运维架构

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

2015-10-19 09:58 501 查看
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;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: