Could they help me make a button with a link to a website? It is an application for iPhone and I wanted the button to open the site in Safari (for example).
Could they help me make a button with a link to a website? It is an application for iPhone and I wanted the button to open the site in Safari (for example).
The function for this is openURL
, an example:
@IBAction func WebLink(sender: AnyObject) { if let url = NSURL(string: "http://...") { UIApplication.sharedApplication().openURL(url) } }