Xcode 7 contains an Objective-C variant, where you can define a type-hint for (homogenous) NSArray
return values and properties, defined such as NSArray<UIImage*>
.
I'd like to use this feature to rewrite my JSON-deserializer class (which needs such kind of type hints –?previously I have solved this by adding a -(Class)jsonHintForKey:(NSString*)key
to my classes that have homogenous arrays as properties.)
Do you know whether (and if so, how) I can use the Objective-C runtime to get the class of this new type hint at runtime?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…