I need to distinguish between Class1 and Class2. Surely I can get first objects and do isKindOfClass: but it seems kinda sloppy.
@property RLMArray<Class1 *><Class1> *arr1;
@property RLMArray<Class2 *><Class2> *arr2;
How do I retrieve the class contained in RLMArray?
Thanks.
You can get the class name held by RLMArray's using its objectClassName
property:
The class name (i.e. type) of the RLMObjects contained in this RLMArray.
@property (readonly, copy, nonatomic) NSString *_Nonnull objectClassName;
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments