@property (copy) Class *aClass; @synthesize aClass; // 等同于: - (void)setAClass:(Class *)_aClass { if(aClass !=_aClass ) { [aClass release]; aClass = [_aClass copy]; } } - (Class *)aClass { [aClass retain]; return [aClass autorelease]; }
C中@property与@synthesize(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/66654262214f1dca35033b2a1128ac93.html