#import <objc/runtime.h>
static void * PersonCellTypePorpertyKey = (void *)@"PersonCellTypePorpertyKey";
@interface AppTItem(private){
}
@property (nonatomic, assign)PersonCellType cellType;
@end
@implementation AppTItem(private)
- (PersonCellType)cellType
{
id typeValue = objc_getAssociatedObject(self, PersonCellTypePorpertyKey);
return (PersonCellType)[typeValue unsignedIntValue];
}
- (void)setCellType:(PersonCellType)cellType
{
objc_setAssociatedObject(self, PersonCellTypePorpertyKey, @(cellType), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
@end