As per subject, how can I check whether an object is an NSArray or NSDictionary?
if([obj isKindOfClass:[NSArray class]]){ //Is array }else if([obj isKindOfClass:[NSDictionary class]]){ //is dictionary }else{ //is something else }