Swift

swiftでsafariを起動する

More than 1 year has passed since last update.

let url = NSURL(string: "指定URL")
if UIApplication.sharedApplication().canOpenURL(url!){
UIApplication.sharedApplication().openURL(url!)
}