佚名通过本文主要向大家介绍了objective-c中限定Array中的元素为某个对象,应该怎么通过runtime获得数组限定的类型呢?等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: objective-c中限定Array中的元素为某个对象,应该怎么通过runtime获得数组限定的类型呢?
描述:
解决方案1:
描述:
@property (strong, nonatomic) NSArray <NSString*>*array;
这样的一个属性,我怎么通过runtime的方式怎么知道数组元素为NSString类型呢?
解决方案1:
isKindofClass