阅读背景:

如何在Xcode 8.3中的'if let'语句中修复类型转换的警告?

来源:互联网 

Consider the following code:

请考虑以下代码:

let nsdate: NSDate? = NSDate()
if let date = nsdate as? Date { // a warning occurs here
    print(date)
}
let n



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: