简体   繁体   English

如何用MKMapView显示UIProgressView?

[英]How to show UIProgressView with MKMapView?

In my application, i have latitude and longitude values to show a location in MKMapView. 在我的应用程序中,我具有经度和纬度值以在MKMapView中显示位置。 In previous version i have used UIActivityIndicator until Mapscreen loads in MKMapView. 在以前的版本中,我一直使用UIActivityIndi​​cator,直到在MKMapView中加载Mapscreen。 Now i want to show a UIProgressView instead of UIActivityIndicator. 现在我想显示一个UIProgressView而不是UIActivityIndi​​cator。

Is it possible to show a progress with MKMapView? MKMapView是否可以显示进度? I searched lot and couldn't get proper or related solution so for. 我进行了很多搜索,因此无法获得适当或相关的解决方案。

Note: What i have used with UIProgressView is uploading and downloading files with NSURLConnection. 注意:我与UIProgressView一起使用的是通过NSURLConnection上传和下载文件。 I want to know the process time of map loading section, then only i will able to show progress ? 我想知道地图加载部分的处理时间,那么只有我才能显示进度? right. 对。

Any one plz help me on this? 有人帮助我吗? Thanks in advance. 提前致谢。

Unfortunately MKMapView doesn't natively support this. 不幸的是, MKMapView本身不支持此功能。

You can check MKMapViewDelegate Protocol Reference and there are no such delegate methods. 您可以检查MKMapViewDelegate协议参考 ,并且没有此类委托方法。 All you can get from it is only when map starts and finishes loading the data. 仅在地图开始和结束加载数据时,您才能从中获得所有收益。

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

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