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

查看:35
本文介绍了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天全站免登陆