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
Post a Comment