ios - Apple iOS MapKit 提供了哪些标准注释?

标签 ios mkmapview mapkit mkannotation mkannotationview

在浏览所有 Apple MapKit 文档时,我能找到的唯一“标准”注释 View 如下:

Apple 还提供其他标准注释 View 吗?他们只提供一个点吗?或者带有文字的点?

最佳答案

这是 Apple 提供的仅有的两个。当然,您可以创建自己的。请参阅the documentation :

Defining a Custom Annotation View

If a static image is insufficient for representing your annotation, you can subclass MKAnnotationView and draw content dynamically in one of the following two ways:

  • Continue to use the image property of MKAnnotationView, but change the image at regular intervals.
  • Override the annotation view’s drawRect: method and draw your content dynamically every time.

...

关于ios - Apple iOS MapKit 提供了哪些标准注释?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24613244/

相关文章:

ios - 从 View Controller 动态加载 tabItems 时,TabBar 未显示 [更多...] 图标

iphone - iOS 7 中的转弯导航

swift - swift 中的 MKPointAnnotations 触摸事件

ios - UITableViewCell 子类不允许我设置标签文本

ios - 这个bar在iOS中怎么实现?

ios - 无法找到 SimpeAuth (cocoapods) 的规范

ios - MKMapView 仅在测试时导致 EXC_BAD_ACCESS

ios - 旋转期间 MKMapView 的 centerCoordinate 出现错误?

ios - 使用 map (苹果或谷歌)的应用程序经常因内存压力而被杀死(主要发生在进入相机时)

objective-c - Objective-C - 如何将度分秒转换为 double