आईओएस 4.0 करने से पहले, CoreLocation
सही ढंग से ऊंचाई रिपोर्टिंग कर रहा था अब यह हमेशा 0 फुट के रूप में रिपोर्ट करता है।आईओएस CoreLocation ऊंचाई
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation *)oldLocation
{
NSString *tLatitude = [NSString stringWithFormat:@"%3.5f", newLocation.coordinate.latitude];
NSString *tLongitude = [NSString stringWithFormat:@"%3.5f", newLocation.coordinate.longitude];
/* the following returns 0 */
NSString *tAltitude = [NSString stringWithFormat:@"%i", newLocation.altitude];
/* theres more code, but it's not relevant,
and this worked prior to iOS 4.0*/
[manager stopUpdatingLocation];
}
डिवाइस है और न ही सिम्युलेटर पर काम कर रहा है, किसी और अनुभव इस मुद्दे करता है?
क्या आप इसे किसी डिवाइस या सिम्युलेटर पर परीक्षण कर रहे हैं? –
डिवाइस और सिम्युलेटर। – WrightsCS