iOS CoreLocation Altitude

后端 未结 4 495
终归单人心
终归单人心 2020-12-31 11:36

Prior to iOS 4.0, CoreLocation was reporting altitude correctly, now it always reports as 0 ft.

-(void)locationManager:(CLLocationManager *)mana         


        
4条回答
  •  独厮守ぢ
    2020-12-31 12:20

    Core Location does not always report altitude immediately. I usually check for a zero altitude in my "success" delegate method. If the altitude is still 0, I keep checking, otherwise, I turn of CoreLocation.

提交回复
热议问题