iOS GPS 箭头白色或紫色有什么区别?
状态栏中显示的 GPS 箭头。对于我的应用程序,即使应用程序位于前台,它也始终显示为白色箭头。而对于地图应用程序,箭头显示为紫色。有区别吗?
The GPS arrow that appears in the status bar. For my app it always shows up as a white arrow even when the app is in the foreground. Whereas for the Maps app the arrow shows up as purple. Is there a difference?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
紫色表示它正在积极使用您的位置,而白色表示它在过去 24 小时内使用过位置服务(但当前未请求)
purple means that it is actively using your location, whereas white means that it used the location services in the last 24 hours (but isnt currently requesting it)
没有什么区别,只是代表不同的 UI 状态风格。
两者都表示 GPS 正在运行以获取最新位置。
您应该能够在 plist 属性中设置状态栏样式: UIStatusBarStyleBlackOpaque
There is no difference, they are just represented for different UI status style.
Both of them are meaning that the GPS is running to get a latest location.
You should be able to set the status bar style at plist property: UIStatusBarStyleBlackOpaque