Error解决:Property's synthesized getter follows Cocoa naming convention for returning 'owned'
2016-06-18 01:10
399 查看
在项目中定义了以new开头的textField,结果报错:
先看我的源码
解决办法:
最简单的方法是改我们定义属性的名字,不要以new、copy、alloc等关键词开头!!!
先看我的源码
#import <UIKit/UIKit.h> @interface ResetPasswordViewController : UIViewController @property (weak, nonatomic) IBOutlet UITextField *phoneTextField; @property (weak, nonatomic) IBOutlet UITextField *oldPasswordTextField; <span style="color:#FF0000;">@property (weak, nonatomic) IBOutlet UITextField *newPasswordTextField;</span> @property (weak, nonatomic) IBOutlet UITextField *confirmPasswordTextField; @property (weak, nonatomic) IBOutlet UINavigationItem *navigationItem; @end
解决办法:
最简单的方法是改我们定义属性的名字,不要以new、copy、alloc等关键词开头!!!
相关文章推荐
- SVGElement Drag & Drop
- opencv 透视变换
- 基于zookeeper的高可用Hadoop HA集群安装
- Linux---tmux常用命令
- 使用Properties读写属性文件
- 新组件或功能怎么依附到已有的架构上
- linux 系统 网卡 ethX没有显示IP的处理方式
- linux iptables详解
- Hadoop启动,创建文件hdfs
- centos 启用ftp功能
- 克隆centos虚拟机 的IP HostName HWaddr
- spark worker 启动失败 failed to launch org.apache.spark.deploy.worker.Worker
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法
- CentOS正确关机方法