Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift open settings page

guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else {
  return
}

if UIApplication.shared.canOpenURL(settingsUrl) {
  UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
                                                             print("Settings opened: (success)") // Prints true
                                                            })
}
 
PREVIOUS NEXT
Tagged: #swift #open #settings #page
ADD COMMENT
Topic
Name
8+2 =