1
2
3
4
5
6
7
8
9
10
11
12
|
if
url =
URL
(string: urlString) {
//根据iOS系统版本,分别处理
if
#available(iOS 10,*) {
UIApplication
.shared.open(url,options: [:],
completionHandler: {
(success)
in
})
}
else
{
.shared.openURL(url)
}
}
|
原文出自: www.hangge.com 转载请保留原文链接: http://www.hangge.com/blog/cache/detail_764.html 原文链接:https://www.f2er.com/swift/321584.html