0%

〈extreme.framework/NSObject+Class.h〉

extreme.framework/NSObject+Class.h〉

PropertyModel[这是什么?]

2.0~[这是什么?]

1
2
3
4
5
6
@interface PropertyModel : NSObject

@property (copy, nonatomic, nonnull) NSString *propertyName;
@property (copy, nonatomic, nonnull) NSString *propertyType;

@end

[这是什么?]

NSObject+Class

2.0~

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
typedef void (^_Nullable EnumerateClass)(Class _Nonnull cls, BOOL *_Nonnull stop);
typedef void (^_Nullable EnumeratePropertiesFinish)(PropertyModel *_Nonnull pModel);
/**
遍历所有的父类。(Enumerate every class of every super class.)

@param enumerateClass EmunClassBlock 实例
*/
- (void)enumerateClass:(EnumerateClass)enumerateClass;
/**
遍历所有的属性。(Enumerate every property of a class.)

@param cl class
@param finish EnumeratePropertiesFinish 实例
*/
- (void)enumerateProperties:(Class _Nonnull)cls finish:(EnumeratePropertiesFinish)finish;