Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
2014-03-28 15:10
567 查看
Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
这个出处:@synthesize newPwd;
违犯了ARC命名规则,成员变量不要以new作为前缀。
关于ARC规则,请参考http://mobile.51cto.com/iphone-313122.htm
基本的ARC使用规则:
1。代码中不能使用retain, release, retain, autorelease
2。不重载dealloc(如果是释放对象内存以外的处理,是可以重载该函数的,但是不能调用[super dealloc])
3。不能使用NSAllocateObject, NSDeallocateObject
4。不能在C结构体中使用对象指针
5。id与void *间的如果cast时需要用特定的方法(__bridge关键字)
6 。不能使用NSAutoReleasePool、而需要@autoreleasepool块
7 。不能使用“new”开始的属性名称 (如果使用会有下面的编译错误”Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects”)
这个出处:@synthesize newPwd;
违犯了ARC命名规则,成员变量不要以new作为前缀。
关于ARC规则,请参考http://mobile.51cto.com/iphone-313122.htm
基本的ARC使用规则:
1。代码中不能使用retain, release, retain, autorelease
2。不重载dealloc(如果是释放对象内存以外的处理,是可以重载该函数的,但是不能调用[super dealloc])
3。不能使用NSAllocateObject, NSDeallocateObject
4。不能在C结构体中使用对象指针
5。id与void *间的如果cast时需要用特定的方法(__bridge关键字)
6 。不能使用NSAutoReleasePool、而需要@autoreleasepool块
7 。不能使用“new”开始的属性名称 (如果使用会有下面的编译错误”Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects”)
相关文章推荐
- property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- 随笔-property follows cocoa naming convention for returning 'owned' objects
- property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects (2012-01
- Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- error: property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- Property follows Cocoa naming convention for returning 'owned' objects 错误解决办法
- property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- iOS 错误 property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
- Cannot 'Synchronize with database' my entity objects
- attempt to insert nil object from objects[1]' 错误
- 条款 04 make sure that objects are initialized before they're used
- modelsim的 # (vish-4014) No objects found matching '/*'
- iOS:编译错误Property's synthesized getter follows Cocoa naming convention for returning 'owned' objectss
- 《Effective C++》读书笔记之四 Item 4. Make sure that objects are initialized before they're used
- HUE 报错误:Filesystem root '/' should be owned by 'hdfs'
- select * from dbo.sysobjects where type not in('S','D','K')