首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏学海无涯

    iOS开发之地图

    声明权限 设置gpx数据 二、地图基本使用 实现功能:显示地图,并且显示用户所在的位置,点击用户的位置,显示一个气泡展示用户的位置信息 代码 @interface ViewController ()<MKMapViewDelegate 实现效果 三、地图缩放级别 实现功能:在之前功能的基础上实现地图的任意视角(“缩放级别”) 代码 @interface ViewController ()<MKMapViewDelegate> CLLocationCoordinate2D)newCoordinate; @end 控制器 @interface ViewController ()<CLLocationManagerDelegate, MKMapViewDelegate

    1.7K20发布于 2019-05-10
  • 来自专栏全栈程序员必看

    iOS的高德地图标注特定位置

    7 #define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height) 8 9 @interface MapViewCtl ()<MKMapViewDelegate

    1.3K30编辑于 2022-08-31
  • 来自专栏Alice

    ios地图小例子和手势的使用 供大家参考一下呦

    "ViewController.h" #import <MapKit/MapKit.h> #import "MyAnnotation.h" @interface ViewController ()<MKMapViewDelegate

    1.1K90发布于 2018-02-01
  • 来自专栏青玉伏案

    iOS开发之地图与定位

    今天的博客主要是介绍MKMapView的使用,MapView的使用和其他组件的用法差不多,MapView用的是委托回调,在使用mapView的Controller中要实现MKMapViewDelegate

    1.9K60发布于 2018-01-11
  • 来自专栏云原生布道专栏

    【IOS开发基础系列】地图开发专题

    . // Implement mapView:viewForAnnotation: on MKMapViewDelegate to return the annotation view for each )showAnnotations:(NSArray *)annotations animated:(BOOL)animated NS_AVAILABLE(10_9, 7_0); @end 2.1.2 MKMapViewDelegate 委托接口申明 @protocol MKMapViewDelegate @optional - (void)mapView:(MKMapView *)mapView regionWillChangeAnimated self.mapView.showsUserLocation = YES; [self.mapView setUserTrackingMode: MKUserTrackingModeFollow animated: YES]; 2.1.3.2 MKMapViewDelegate 委托处理 #pragma mark - MKMapViewDelegate 委托处理 - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation

    1.1K30编辑于 2023-10-16
  • 来自专栏全栈程序员必看

    IOS-导航路线_iphone导航

    ViewController.h" 10 #import <MapKit/MapKit.h> 11 #import "HMAnnotation.h" 12 13 @interface ViewController ()<MKMapViewDelegate "%@ %f", step.instructions, step.distance); 140 } 141 142 } 143 }]; 144 } 145 146 #pragma mark - MKMapViewDelegate

    1K20编辑于 2022-09-20
  • 来自专栏coding...

    Objective-C MapKit的使用-LBS简单的租车主界面demo效果分析代码demo地址

    NSMutableArray<CarModel *> *carModelArray; @end 使用到的全局变量 @interface MapView()<CLLocationManagerDelegate,MKMapViewDelegate addObject:annotation]; count++; } } mapview自身的代理方法,点击和取消大头针,实现回调跳转车辆信息view #pragma mark - MKMapViewDelegate

    2.4K40发布于 2018-08-23
  • 来自专栏全栈程序员必看

    iOS iOS 地图与定位开发系列教程

    property NSArray *annotations; //地图上的标记 @property MKUserLocation userLocation; //用户位置 @property id <MKMapViewDelegate //选中标注 self.mapView.selectAnnotation(annotation, animated: true) } } 自定义图钉视图 遵循MKMapViewDelegate

    3.4K30编辑于 2022-09-17
  • 来自专栏学海无涯

    iOS14开发-定位与地图

    extension ViewController: MKMapViewDelegate { func mapView(_ mapView: MKMapView, viewFor annotation extension ViewController: MKMapViewDelegate { func mapView(_ mapView: MKMapView, viewFor annotation

    3.5K30发布于 2021-07-14
  • 来自专栏滕先生的博客

    地图相关 MapKit框架介绍MKMapView控件对象的属性和方法MKAnnotation 大头针模型类大头针view显示类:MKPinAnnotationView 继承于 MKAnnotation

    self.mapView.centerCoordinate = self.mapView.userLocation.location.coordinate; 5.设置代理 @property (nonatomic, weak, nullable) id <MKMapViewDelegate nullable MKAnnotationView *)dequeueReusableAnnotationViewWithIdentifier:(NSString *)identifier; ---- 代理方法:MKMapViewDelegate

    5.7K70发布于 2018-05-18
  • 来自专栏一“技”之长

    iOS原生地图开发指南 原

    readonly) NSArray *overlays; 地图覆盖物数组 - (NSArray *)overlaysInLevel:(MKOverlayLevel)level; 层级属性下的东土覆盖物数组 二、MKMapViewDelegate

    1.7K30发布于 2018-08-16
  • 来自专栏iOS开发~

    iOS_系统自带地图圆形区域选择范围

    statusBarFrame.size.height) #define kDefault (100) @interface ViewController () <CLLocationManagerDelegate, MKMapViewDelegate

    2.8K10编辑于 2022-07-20
  • 来自专栏移动端开发

    解析SwiftUI布局细节(三)地图的基本操作

    MKMapView 有个 MKMapViewDelegate 代理方法,它具体的方法可以点进这个协议去看,里面有个方法是 - (nullable MKAnnotationView *)mapView:(

    2.7K10发布于 2021-01-07
  • 来自专栏正则

    架构之路 (六) —— VIPER架构模式(二)

    func makeCoordinator() -> Coordinator { Coordinator(self) } class Coordinator: NSObject, MKMapViewDelegate

    1.5K10发布于 2021-09-04
领券