YYModel
YYModel copied to clipboard
运行时如何获取类属性泛型的申明
类的属性@property (nonatomic, copy) NSArray<List *> *list;
怎么获取类属性前面的泛型的声明,例如这个尖括号里的“List”
property_getAttributes 内容是 T@"NSArray",&,N,V_list,只知道是NSArray,怎么获取尖括号里的“List”,谢谢
获取不到,可以使用伪泛型pseudo
| | 曾维俊 | | 邮箱:[email protected] |
签名由 网易邮箱大师 定制
在2020年04月01日 14:13,blooming2017 写道:
类的属性@Property (nonatomic, copy) NSArray<List *> *list; 怎么获取类属性前面的泛型的声明,例如这个尖括号里的“List”
property_getAttributes 内容是 T@"NSArray",&,N,V_list,只知道是NSArray,怎么获取尖括号里的“List”,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.