Guest User

Untitled

a guest
Jun 21st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. func moreTapped() {
  2. let url = NSURL(string: "itms-apps://itunes.com/developer/quantum-productions/id979315877")
  3. if #available(iOS 10.0, *) {
  4. UIApplication.shared.open(url! as URL, options: [:], completionHandler: {(success: Bool) in
  5.  
  6. })
  7. } else {
  8. UIApplication.shared.openURL(url! as URL)
  9. }
  10.  
  11. }
Add Comment
Please, Sign In to add comment