os4开始CLLocationManager类中不支持locationServicesEnabled属性了 locationServicesEnabled改为类方法 //判断定位服务是否开启 if ([CLLocationManager locationServicesEnabled]) { }