os4开始CLLocationManager类中不支持locationServicesEnabled属性了

locationServicesEnabled改为类方法

//判断定位服务是否开启

    if ([CLLocationManager locationServicesEnabled]) {

 }

原文地址:https://www.cnblogs.com/niit-soft-518/p/4039702.html