I want to test some features.
how can i set hard coded my latitude,longitude of iPhone gps?
I know how to get it…
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
lat = newLocation.coordinate.latitude;
lon = newLocation.coordinate.longitude;
}
but didnt found a way setting it
Open your Simulator, in the top bar go to Debug=>Location=>Custom Location enter your custom latitude and longitude coordinates.