objective c - Open the Bluetooth Settings Menu in Ios 10 -


i need open bluetooth settings menu in ios10 , above.but [[uiapplication sharedapplication] openurl: [nsurl urlwithstring:@"prefs:root=bluetooth"]]; not working in ios 10.

after exploring multiple document got below link provide code work properly. https://gist.github.com/johnny77221/bcaa5384a242b64bfd0b8a715f48e69f

but, have question app store accept patch code or reject application.

please me solve issue.

thanks in advance

swift 3.0:- working in ios version upto ios 10.2

let url = url(string: "app-prefs:root") //for system setting app

@ibaction func blutoothebuttontapped(_ sender: anyobject) { let url = url(string: "app-prefs:root=bluetooth") //for bluetooth setting      let app = uiapplication.shared     app.openurl(url!) } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -