
iOS 地图
番薯大佬
码农一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS检测定位服务
//导入位置位置头文件#import原创 2014-05-17 16:54:47 · 1016 阅读 · 0 评论 -
如何弹出跳转到开启定位的设置
使用定位功能时,如果没有开启定位功能,如何可民提醒用户,并提示用户进入原创 2014-06-09 16:14:53 · 2364 阅读 · 0 评论 -
iOS 检测定位服务
Core Location是开发定位服务应用程序的框架。我们要在Xcode中添加“CoreLocation.framework”存在的框架。主要使用的类是:CLLocationManager,通过CLLocationManager实现定位服务。 注意:1、添加“CoreLocation.framework”存在的框架2、导入头文件 #import <CoreLocat...原创 2015-03-01 09:31:34 · 673 阅读 · 0 评论 -
经纬度有效范围判断
///经纬度有效范围判断+ (BOOL)isValidCoordinate:(CLLocationCoordinate2D)coordinate{ //经度最大是180° 最小是0° CGFloat longitude = coordinate.longitude; if (0.0 > longitude || 180.0 < longitude)...原创 2015-06-12 19:02:13 · 8828 阅读 · 0 评论 -
滚动显示自定义区域(高德地图)
///滚动显示自定义区域- (void)CenterWithCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated{ /* CLLocationCoordinate2D theCenter; MACoordinateRegion theRegin; theC原创 2015-07-23 12:13:04 · 2456 阅读 · 0 评论 -
获取某一点的经纬度(高德地图)
//获取某一点的经纬度(即CGPoint转CLLocationCoordinate2D)- (CLLocationCoordinate2D)getCLLocationCoordinate2DWithPoint:(CGPoint)point{ CGPoint addressPoint = point; CLLocationCoordinate2D mapCoordin原创 2015-07-23 12:16:07 · 3305 阅读 · 0 评论 -
CLLocationManager定位功能
iOS开发中使用原生地图CLLocationManager进行定位功能的开发。使用示例1、导入头文件#import <CoreLocation/CoreLocation.h>2、实例化- (CLLocationManager *)locationManager{ if (_locationManager == nil) { _locationMan...原创 2018-11-10 22:21:54 · 2569 阅读 · 0 评论 -
MKMapView长按识别位置经纬度信息
1、添加长按手势- (MKMapView *)mapView{ if (_mapView == nil) { _mapView = [[MKMapView alloc] init]; } return _mapView;}// 添加长按手势UILongPressGestureRecognizer *longPressRecognizer = [[...原创 2018-11-11 01:00:52 · 501 阅读 · 0 评论