ios开发笔记(5)

“Auto property synthesis will not synthesize property ‘imageView’…”问题的解决

Auto property synthesis will not synthesize property ‘imageView’ because it is ‘readwrite’ but it will be synthesized ‘readonly’ via another property. 我在自定义UITableViewCell的.h文件里面添加属性
@property(nonatomic,strong)UIImageView *imageView;

解决方法:

把@property(nonatomic,strong)UIImageView *imageView;
这里的imageView名字改一下就行了,imageView好像跟系统自带属性有冲突.