Posted at

swiftでsafariを起動する

More than 3 years have passed since last update.

let url = NSURL(string: "指定URL")

if UIApplication.sharedApplication().canOpenURL(url!){

UIApplication.sharedApplication().openURL(url!)

}