有没有办法通过 iphone 的 MapKit 找到用户所处的状态?
我正在使用适用于 iPhone 的 MapKit,并将其设置为获取用户的位置并将其显示在视图上。但我需要知道它们处于哪种状态,以便我知道要加载并向用户显示哪些数据。有什么办法可以获得此类信息吗?
I am using the MapKit for the iPhone and have it setup to get the user's location and display it on the view. But I need to know which state they're in so I know what data to load and display to the user. Is there any way to get that sort of info?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 CurrentAddress代码示例:
Have a look at the CurrentAddress code sample:
好吧,看来 MKReverseGeocoder 可以做到这一点,但我还没有确定如何做到,我会做一些挖掘。
Ok, so it seems the MKReverseGeocoder can do this, but I've yet to determine how, I'll do some digging.