有没有办法重定向到设置页面,以便用户可以设置其动态字体大小?使用下面的代码重定向到应用程序设置页面,但没有字体大小设置(有没有办法启用它?)
let alertController = UIAlertController(title: "Body Font Size",
message: "Please proceed to Settings > Display & Brightness > Text Size to change your system font.",
preferredStyle: .Alert)
let settingsAction = UIAlertAction(title: "Settings", style: .Default) {
(alertAction) in
if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) {
UIApplication.sharedApplication().openURL(appSettings)
}
}
alertController.addAction(settingsAction)
let cancelAction = UIAlertAction(title: "Cancel", style: .Cancel, handler: nil)
alertController.addAction(cancelAction)
presentViewController(alertController, animated: true, completion: nil)