首页 > 移动平台 > 详细

IOS apprentice

时间:2015-04-16 06:45:26      阅读:169      评论:0      收藏:0      [点我收藏+]

1. generics: meaning that they are independt of the type of thing you want to store inside these collections

2. optional

var checklistToEdit: Checklist?

3. Binding/ unwrapping: you cannot use optional variable directly, you must always test whether it has a value or not.

if let checklist = checklistToEdit {
 // “checklist” now contains the real object
} else {
 // the optional was nil
}

 

技术分享
sfafads
View Code

 

IOS apprentice

原文:http://www.cnblogs.com/glee/p/4430893.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!