swift包装类型 ?

1.解包包装类型,只需要尾部加!

2.初始化赋值必须保证变量是包装类型

var str : String? = nil

 

posted @ 2016-06-01 18:56  ExpressFF  阅读(207)  评论(0编辑  收藏  举报