调整 Apple MKMapView 标签的大小

Adjusting Size of Apple MKMapView Labels

我的应用程序中的地图视图全面运行良好,并且在 iPad 上正确显示。但是在 iPhones 上,country/state/city/etc. 标签显得非常大和超大。这是它在 iPhone 8 Plus 上的截图:

地图视图的宽度几乎是最大的,接近于屏幕的宽度。

问:有什么方法可以adjust/reduce那些标签字体大小吗?

根据 Apple Dev 支持,edford, MKMapView 中的标签直接关联到设备上的 文本大小 设置。没有 API 可以通过代码控制它,因为它是用户偏好设置。


这是 Apple Dev 论坛上的答案:

谢谢你,edford!