iOS8 地图遇到的问题

1 。不走代理方法

IOS8以后,需要在info.plist文件里面加NSLocationWhenInUseDescription或NSLocationAlwaysUsageDescription。后面的描述随便加。IOS以后需要到CLLocationManager得代理- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status来判断用户定位的状态。如果状态为kCLAuthorizationStatusNotDetermined,就调用plist里面的相对应的方法(如果你的plist写的是NSLocationWhenInUseDescription就调用[_locationManager requestWhenInUseAuthorization],如果是NSLocationAlwaysUsageDescription就调用[_locationManager requestAlwaysAuthorization])。定位就用- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations就好了。

2真机测试无法进行发出警告

 No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

点击你的项目》》TARGETS》》iOS Deployment Target》》修改为低于你设备的版本号。

 

转载于:https://www.cnblogs.com/xiezefeng/p/4423414.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值