It seems that your array contains two NSString
objects - to convert them to the appropriate floating-point numbers, use the doubleValue
method of NSString
:
double lat = [(NSString *)[userCoordinates objectAtIndex:0] doubleValue];
double lon = [(NSString *)[userCoordinates objectAtIndex:1] doubleValue];
CLLocationCoordinate2D coords = (CLLocationCoordinate2D){ lat, lon };