简体   繁体   English

MKMapView-是否缓存引脚?

[英]MKMapView - Does it cache Pins?

I had something interesting happen and now I can't replicate it. 我发生了一些有趣的事情,现在我无法复制它。

I have a number of custom pins based on different location types. 我有许多基于不同位置类型的自定义图钉。 I changed the size of the pin graphics. 我更改了引脚图形的大小。

When I relaunched the app, some of the pins were the showing at the old size. 当我重新启动该应用程序时,其中一些图钉以旧尺寸显示。

What's strange is that I deleted the app. 奇怪的是我删除了该应用程序。 Only when I rebooted the phone did the pins show at the right size. 仅当我重新启动电话后,插针才会显示正确的尺寸。

Beyond tiles, is anything else cached in MKMapView? 除了图块之外,MKMapView中还缓存了其他内容吗?

It seems that Xcode sometimes doesn't update changed resource files when it updates the app on your device or in the simulator. 似乎Xcode有时在更新设备或模拟器中的应用程序时不会更新更改的资源文件。 Deleting the previous version of the solves the problem. 删除先前版本的解决方案即可解决此问题。 What you're seeing surely doesn't have anything to do with MKMapView -- other people have reported the same kinds of issues with other resources. 您所看到的肯定与MKMapView没有任何关系,其他人报告了与其他资源相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM