How can i call method with arguments into another method.
I have a problem in objective c class. My code is
- (void)locationUpdate:(CLLocation *)location {
location.coordinate.longitude];
googleUrl=[[NSString alloc]initWithFormat:@"https://maps.googleapis.com/maps/api/place /search/xml?location=%f,%f&radius=500&name=the%20money&sensor=false& key=AIzaSyCcC9pmri9XGOgyhjoHQq37cmcfgsfb6bBZe80",location.coordinate.latitude,location.coordinate.longitude];
}
-(void)ParseXML_of_Google_PlacesAPI {
NSURL *googlePlacesURL = [NSURL URLWithString:googleUrl];
NSData *xmlData = [NSData dataWithContentsOfURL:googlePlacesURL];
}
I want to put googleUrl value in parseXML method