创建 cell 或者 附加视图
1、在此之前注册
func registerClass(_ cellClass: AnyClass?,forCellWithReuseIdentifier identifier: String)
func registerClass(_ viewClass: AnyClass?,forSupplementaryViewOfKind elementKind: String,
withReuseIdentifier identifier: String)
registerNib:forCellWithReuseIdentifier:
向CollectionView来注册
2、取出cell
func dequeueReusableCellWithReuseIdentifier(_ identifier: String,
    forIndexPath indexPath: NSIndexPath!) -> AnyObject
从已注册的cell或nib中取出xc
 
原文:http://www.cnblogs.com/baaingSheep/p/4292981.html