摘要: 在Swift语法的if语句中,是不能出现这种情况的:1 let optionName = "Swift"2 if let name = optionName {3 print("ok")4 }但是可以出现下面这种:let optionName: String? = "Swift"if let... 阅读全文
posted @ 2015-11-03 17:15 wuqh_iOS 阅读(652) 评论(0) 推荐(0) 编辑