CLLocationManager“打开定位服务...”自定义alertview ios
我知道我无法更改此警报视图的标题或按钮,但我见过许多应用程序更改了警报视图的消息
这样的东西
另外,我的应用程序中有 Bump API,因此每次弹出窗口显示时,它都会显示“Bump 使用您的位置来帮助确定您要碰撞的人。”我不希望他们第一次使用我的应用程序时显示该信息。
有谁知道我如何更改消息或更改凹凸的消息? 谢谢
I know that I can't change the title or the buttons for this alertview, but i've seen numerous apps that changed the message of the alert view
Something like this
Also, I have the Bump API in my app so everytime the popup shows, it says "Bump uses your location to help determine whom you are bumping." and I don't want that displayed when they first use my app.
Does anybody know how I can change the message or change bump's message?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要更改警报消息,请使用 CLLocationManager 的“目的”属性。检查文档:http://developer. apple.com/library/IOs/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
To change the message of the alert, use the "purpose" property of CLLocationManager. Check the docs: http://developer.apple.com/library/IOs/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
我不确定 Bump API 是如何工作的,但如果您只是导入所需的所有类,您应该能够编辑位置服务消息。否则,一种选择是在调用 Bump API 以获得应用程序的权限之前请求位置访问权限。一旦 Bump 检查,它将已经获得许可并跳过呈现自己的许可。
I'm not sure how the Bump API works, but if you are just importing all the classes you need, you should be able to edit the location services message. Otherwise, one option would be to request location access before calling the Bump API's to get permission for your app. Once Bump checks, it will already have permission and skip presenting its own.