Грозные ответы уже даны, но вот полный фрагмент кода, чтобы открыть настройки твиттера в настройках с помощью UIAlertController
и Swift 3:
let alert = UIAlertController(title: "No Twitter Accounts", message: "There are no Twitter accounts configured. You can add or create a Twitter account in Settings.", preferredStyle: .alert)
let firstAction = UIAlertAction(title: "Cancel", style: .default, handler: {(action: UIAlertAction) -> Void in
})
let secondAction = UIAlertAction(title: "Settings", style: .default, handler: {(action: UIAlertAction) -> Void in
let url = URL(string:"App-Prefs:root=TWITTER")!
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
})
alert.addAction(firstAction)
alert.addAction(secondAction)
self.present(alert, animated: true, completion: nil)
Очень обширный список: http://iphoneza.co.za/IconSettings/ – Sahil
https://github.com/Burnsoft/Settings-Swipe Я недавно открытым исходным кодом оригинальной версии моего последнего приложения , так как функции, скорее всего, никогда не попадут в AppStore. Он использует локальные уведомления, чтобы обеспечить легкий доступ к вашим настройкам iOS5. Включая Twitter. –
Недавно я придумал способ отправить пользователя в Twitter Настройки, которые работают в iOS 5.1+ http://goto11.net/programmatically-open-twitter-settings-on-ios-5-1/ – nrj