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文件中
这是说编译器自己主动给属性title合成getter和setter的时候将会在它的父类上实现,也就是说坑爹的xcode6.3升级后ios8.3版本号的UIViewController里有一个title属性,如今它不知道究竟是哪一个title.
这不是我们想要的,所以加入 @dynamic告诉编译器这个属性是动态的,动态的意思是等你编译的时候就知道了它仅仅在本类合成;
解决:
在.m文件中
@dynamic title;
相关文章推荐
- 一种多租户系统架构
- apache.commons.lang.StringUtils 的一些用法
- iOS 应用架构谈 动态部署方案
- 王保明老师Linux学习笔记---------信号----signal()函数使用实例
- Centos 7 开启端口
- Linux开机自动挂载Windows分区的两种方法
- 基本的bash shell 命令
- Tomcat配置多个文件夹
- 网站屏蔽广告
- tomcat配置context
- iOS应用架构谈 本地持久化方案及动态部署
- windows nginx +php 配置
- tomcat启动报错cannot connect vm
- 关于BeanUtils.copyProperties的使用
- Hbase shell命令学习
- Win7怎么用IIS发布网站系统 部署项目
- Linux驱动之内核定时器驱动设计
- OpenWrt-SDK-编译生成ipk软件包
- 手把手教你用 Strace 诊断问题 | 运维技巧
- 网站更换了域名图片路径批量修改的方法