English 中文(简体)
a. 听觉环境
原标题:Navigate to settings screen in iphone

我想从我的手边转到听听听听听说语时的情况。 谁能通过告诉如何帮助? 感谢任何帮助。 Sorry for my Poor english.

成就

最佳回答
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];

you may look at this

https://stackoverflow.com/questions/8246070/ios-apping- establishings-restrictions-url-scheme>iOS 发射装置-> 限制

问题回答

prefs:root=General pattern no longer works for iOS Latest versions !!!

报告载有最新情况。 下面是SOS 8号。

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

Settings screen can be opened for versions less than IOS 5.0 as it has been disabled for latest IOS s. For Lower versions you can try this:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]]; 

更确切地说,你应当形成自己的观点,向用户介绍可视的环境,并获取他(首次或作为菜单)的投入,并用NSUserdefault储存。

You can t ask user to enter settings such as server-address port etc and try it each time, if it works.

我找到了一种解决办法,即从你的申请到符合SOS 8或以后版本的申请。

1) [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

This will navigate to settings only if your app settings are absent if they are present then the above code will navigate to Settings page of your app

我正在使用下面的插图,以浏览到iux页,并做精细的工作。

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"App-Prefs:root=CASTLE"] options:@{} completionHandler:nil]

just by replacing the "CASTLE" with "GENERAL"





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签