iphone - how to return multiple values from a method -


i have -(cllocationcoordinate2d) method, want return multiple locations method (those locations using in method) method looks this,

-(cllocationcoordinate2d) addresslocation{  - --------  ----------  return location;  } 

is possible return multiple locations (i mean return location1 , return location2 . . ..) ?? please me thanks

add location objects array , return array instead. e.g.

-(nsarray*) addresslocation{    ...  // set locations    nsarray *array = [nsarray arraywithobjects:location1, location2, nil];    ... // additional processing , return array. } 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -