iOS CoreLocation Altitude

До iOS 4.0 CoreLocation правильно сообщал высоту, теперь всегда отображается 0 футов.

-(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];
}

Не работает ни на устройстве, ни в симуляторе, кто-нибудь Или возникла эта проблема?

10
задан WrightsCS 20 April 2012 в 01:30
поделиться