I would like test on simulator, that a function is trigered, if the iPhone reaces specific speed. So the question is how can I simulate iPhone moving, with specific speed? Using gpx file?
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
double gpsSpeed = newLocation.speed;
if (gpsSpeed > 30) {
//myLogic
[SomeClass function];
}
}