如何在没有警报视图的情况下获取 gps(越狱 iphone)?
NSString *newText;
CLLocationManager * locationManager = [[CLLocationManager alloc] init];
[locationManager startUpdatingLocation];
[locationManager setDesiredAccuracy:kCLLocationAccuracyNearestTenMeters];
CLLocation* location = [locationManager location];
CLLocationCoordinate2D coordinate = [location coordinate];
newText = [[NSString alloc] initWithFormat: @"Your Position : %f %f", coordinate.latitude, coordinate.longitude];
NSLog(@"%@", newText);