override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let website = "https://lisenh.com/h5/liuhai"
let url = URL(string: website)//将字符串转换成【网址对象】
UIApplication.shared.open(url!)
}
Xcode9学习笔记77 - 使用UIApplication对象打开网页(APP调用浏览器打开网页)
猜你喜欢
转载自blog.csdn.net/u011728344/article/details/78682821
今日推荐
周排行