I want to call a method which returns two values
basically lets say my method is like the below (want to return 2 values)
NSString* myfunc { NSString
void myfunc(NSString **string1, NSString **string2) { *string1 = @"MYDATA"; *string2 = @"MYDATA2"; } ... NSString *value1, *value2; myfunc(&value1, &value2);
Remember that you need to pass a pointer to a pointer when working with strings and other objects.