locationServicesEnabled always return YES

后端 未结 6 1491
臣服心动
臣服心动 2021-02-03 10:28

I tested my device (iPod Touch 2G iOS 4.1) if location services are enabled

permitted = [locationManager locationServicesEnabled];

and I always

6条回答
  •  醉梦人生
    2021-02-03 11:11

    Remember that [locationManager locationServicesEnabled] is deprecated since iOS 4.0. Use the Class Method [CLLocationManager locationServicesEnabled] instead.

    The App Specific Button can be retrieved by

    [CLLocationManager authorizationStatus]
    

提交回复
热议问题