|
以下为两张图片。如下:
![]() ![]() 适当的代码段添加如下annotation. MapAnnotation是实现了MKAnnotation的NSObject类。 CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(latitude, longitude); MapAnnotation *annotation = [[MapAnnotationalloc] initWithcoordiante:coordinate]; [map_view addAnnotations: annotation]; [annotation release];
图片:3292_120201133909_122.jpg
图片:3292_120201133945_1.jpg
图片:3292_120201134053_1.png
|
|
|
MKMapView 添加图片
最新推荐文章于 2025-04-26 19:16:42 发布
本文介绍了如何在地图上添加注释,通过实现MKAnnotation的NSObject类,展示了一个实例,包括坐标点的设置和注释的添加过程。


1387

被折叠的 条评论
为什么被折叠?



