ios9 - Open the Bluetooth Settings Menu in IOS -


i need open bluetooth settings menu in ios9.0. next opens settings menu ok!,

uiapplication.sharedapplication().openurl(nsurl(string: uiapplicationopensettingsurlstring)!) 

but need open bluetooth settings menu tried with

uiapplication.sharedapplication().openurl(nsurl(string: "prefs:root=general&path=bluetooth")!) 

it not work

anyone can me?

luis found answer, read past @ first, because saw no answers.

answer: go xcode project, under info -> url types section -> "prefs" in url scheme

in ios9: let url = nsurl(string: "prefs:root=bluetooth")!

ios8: let url = nsurl(string: "prefs:root=general&path=bluetooth")!


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -