UIAlertView类似于“启用位置服务以允许地图确定您的位置”。设置+取消 [英] UIAlertView like "Turn On Location Services to allow maps to determine your location". Settings + Cancel

查看:353
本文介绍了UIAlertView类似于“启用位置服务以允许地图确定您的位置”。设置+取消的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发出此警报:

Turn On Location Services to allow maps to determine your location

我需要设置和取消,就像地图应用程序一样。

I need both "Settings" and "Cancel" exactly like the "maps" application.

设置应该打开设置 - >常规 - >位置服务

"Settings" should open settings->general->location services

我没有找到打开设置页面的方法。

I didn't find the way to open the settings page.

你能帮助我吗?

谢谢

推荐答案

创建警报非常简单,它只是一个(仿)模式UIView。

Creating the alert is pretty straightforward, it's just a (faux-)modal UIView.

然而,不可能以编程方式打开设置应用,至少在没有使用会阻止您的应用获得批准的私有方法的情况下App Store。

However, it's not possible to open the Settings app programmatically, at least not without using private methods that will prevent your app from being approved for the App Store.

这篇关于UIAlertView类似于“启用位置服务以允许地图确定您的位置”。设置+取消的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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