@implementation CLLocationManager (TemporaryHack) - (void)hackLocationFix { CLLocation *location = [[CLLocation alloc] initWithLatitude:37.785834 longitude:-122.406417]; [[self delegate] locationManager:self didUpdateToLocation:location fromLocation:nil]; } - (void)startUpdatingLocation { [self performSelector:@selector(hackLocationFix) withObject:nil afterDelay:0.1]; }
@end Select all the code and paste it into the AppDelegate.m file before or after @implementation AppDelegate @ end I am not a good teacher if you have a question that you can ask again.
source share