Swift3 NSLog打印URL.absoluteString
2017-03-21 本文已影响63人
chenhh6701
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool 方法中
{
let urlString = url.absoliteString
NSLog("urlString = (urlString)")
}
URL.absoluteString 返回正常 却无法访问NSLog
和Run模式相关,release模式会优化NSLog