I have a NSArray that is filled with different types of objects. Lets say one is a NSDictionary and another is NSData.
How would I randomly chose a object from this array and then check what kind of object it is.
So if it a NSDictionary, I will do method A.
Or if it is NSData, I will do method B.
How would I put this into code?
Thanks!
Translated to Objective-C
Or you can do
Does not really matter.