//导入SafariServices
import SafariServices
//覆写viewDidAppear方法
override func viewDidAppear(_ animated:Bool){
super.viewDidAppear(animated)
let myURL = URL(string: "https://www.oschina.net")
let sf = SFSafariViewController(url: myURL!)
present(sf, animated: true, completion: nil)
}