美文网首页
Swift3 NSLog打印URL.absoluteString

Swift3 NSLog打印URL.absoluteString

作者: chenhh6701 | 来源:发表于2017-03-21 12:13 被阅读63次

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool 方法中
{
let urlString = url.absoliteString
NSLog("urlString = (urlString)")
}
URL.absoluteString 返回正常 却无法访问NSLog
和Run模式相关,release模式会优化NSLog

相关文章

网友评论

      本文标题:Swift3 NSLog打印URL.absoluteString

      本文链接:https://www.haomeiwen.com/subject/kywwnttx.html