#UICollectionView
参考:http://blog.csdn.net/king2716/article/details/17485237
//取消所有选中状态
clearsSelectionOnViewWillAppear
//是否显示菜单- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath;
//菜单中哪些编辑操作可以显示
- (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender;
//对于显示的编辑操作怎么执行- (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
//选中时候触发
- (void)selectItemAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UICollectionViewScrollPosition)scrollPosition;
//取消选中时候触发仅在多选时候可用
- (void)deselectItemAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated;
#UICollectionViewLayout相关
参考:http://blog.csdn.net/majiakun1/article/details/17204921
#UICollectionViewCell
//cell的背景,大小自动适应cell
backgroundView
//cell选中时候的背景
selectedBackgroundView
//自定义内容的容器
contentView