导航状态栏iOS [英] In-Navigation Status Bar iOS

查看:90
本文介绍了导航状态栏iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google地图已经有一个蓝色的条形,当您在导航时出现。我想知道如何我自己实现。任何想法?

Google maps already has a blue bar that appears whenever you are in navigation. I want to know how I can implement this myself. Any ideas?


推荐答案

将您的应用配置为在后台使用Core位置 。如果您现在必须在iOS 8中执行请求授权,请使用授权时。

Configure your app to use Core Location in the background. And when, as you must now do in iOS 8, you come to request authorization, request When In Use authorization.

然后,当您的应用程式在后台使用核心位置。

The blue bar will then appear automatically whenever your app is using core location in the background.

这篇关于导航状态栏iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆