单军华
2018-07-19 83b9d5c682b21d88133f24da0f94dd56bd79e687
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
//  NSObject+CustomIndex.m
//  screendisplay
//
//  Created by 单军华 on 2018/7/9.
//  Copyright © 2018年 单军华. All rights reserved.
//
 
#import "NSObject+CustomIndex.h"
#import <objc/runtime.h>
 
static const void *customIndexKey = &customIndexKey;
 
@implementation NSObject (CustomIndex)
 
- (NSNumber *)customIndex {
    return objc_getAssociatedObject(self, customIndexKey);
}
 
- (void)setCustomIndex:(NSNumber *)animating{
    objc_setAssociatedObject(self, customIndexKey, animating, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
 
@end