daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top