Guest User

Untitled

a guest
Dec 9th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. extension UIApplication {
  2. class func openAppSettings() {
  3. guard let url = URL(string: self.openSettingsURLString) else { return }
  4. self.shared.open(url, options: [:], completionHandler: nil)
  5. }
  6.  
  7. class func openSubscriptionManagement() {
  8. guard let url = URL(string: "itms://apps.apple.com/account/subscriptions") else { return }
  9. self.shared.open(url, options: [:], completionHandler: nil)
  10. }
  11. }
Add Comment
Please, Sign In to add comment