LBS软件也能通过模拟器进行调试
重写startUpdatingLocation
@interface CLLocationManager (temp)
- (void)changeFixLocation;
- (void)startUpdatingLocation;
@end
@implementation CLLocationManager (temp)
- (void)changeFixLocation
{
float latitude = 39.9;
float longitude = 116.4;
CLLocation *location= [[CLLocation alloc] initWithLatitude:latitude longitude:longitude];
[self.delegate locationManager:self didUpdateToLocation:location fromLocation:nil];
}
- (void)startUpdatingLocation
{
[self performSelector:@selector(changeFixLocation) withObject:nil afterDelay:0.1];
}
@end