-(void)setName:(NSString *)name {
objc_setAssociatedObject(self, @"name",name,OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
-(NSString *)name {
return objc_getAssociatedObject(self, @"name");
}
-(void)setName:(NSString *)name {
objc_setAssociatedObject(self, @"name",name,OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
-(NSString *)name {
return objc_getAssociatedObject(self, @"name");
}
本文标题:#iOS笔记#Category
本文链接:https://www.haomeiwen.com/subject/egpashtx.html
网友评论