- 博客(1)
- 收藏
- 关注
原创 iOS 系统方法获取当前位置经纬度
1.首先要导入CoreLocation 这个框架2.然后要用到这个类CLLocationManager@property(nonatomic,strong)CLLocationManager* manger;3.添加一下代理<CLLocationManagerDelegate>4.下面是初始化一下本类和绑定代理(如果喜欢懒加载可以写成懒加载)_manger= [[CLLocationManager alloc]init];_manger.delegate=self;.
2021-04-25 17:06:03 1142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人