iOS 4.0 öncesinde, CoreLocation
doğru irtifa rapor veriyordu, şimdi her zaman 0 ft olarak bildirir. iOS CoreLocation Rakım
-(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];
}
Cihaz ne de Simülatörü üzerinde çalışan değil, başkasının deneyim bu konu nedir?
Core Location Data Types Reference kaynaktan
Bunu bir aygıtta veya Simülatörde test ediyor musunuz? –
Cihaz ve Simülatör. – WrightsCS