首页 > 其他 > 详细

collectionView关于点击事件

时间:2016-07-31 21:55:07      阅读:266      评论:0      收藏:0      [点我收藏+]

-(void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath

 

didDeselectItemAtIndexPath 是取消选择点击事件

didSelectItemAtIndexPath 是点击事件

就是因为方法名称太像了,每次didDeselectItemAtIndexPath点击的都会选中上次点击的按钮

搞得我检查了半天才把问题解决 

这个坑爬的我是醉了

collectionView关于点击事件

原文:http://www.cnblogs.com/fleas/p/5723844.html

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