Last active
April 14, 2017 00:16
-
-
Save arkilis/29a1d3f50c8c0adf07b4a4882e7b3656 to your computer and use it in GitHub Desktop.
iOS URL Schemes Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make a phone call | |
UIApplication.shared.openURL(URL(string: "tel:12125551212")!) | |
// Open an url using default brower Safari | |
UIApplication.shared.openURL(URL(string: "http://www.arkilis.me")!) | |
// Send an email by calling Email app | |
UIApplication.shared.openURL(URL(string: "mailto:arkilis@gmail.com")!) | |
// Send a SMS | |
UIApplication.shared.openURL(URL(string: "sms:0400000000")!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment