/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
[input stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; double latitude = 0.0; double longitude = 0.0; if([listItems count] >= 4 && [[listItems objectAtIndex:0] isEqualToString:@"200"]) { latitude = [[listItems objectAtIndex:2] doubleValue]; longitude = [[listItems objectAtIndex:3] doubleValue]; } else { //Show error } CLLocationCoordinate2D location; location.latitude = latitude; location.longitude = longitude; return location; }