zoukankan      html  css  js  c++  java
  • collectionView关于点击事件

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

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

    didDeselectItemAtIndexPath 是取消选择点击事件

    didSelectItemAtIndexPath 是点击事件

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

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

    这个坑爬的我是醉了

  • 相关阅读:
    6.8
    6.7
    6.2
    6.1儿童节
    5.24
    5.22
    5.18
    5.17
    Visual Studio开始一个HelloWorld的enclave程序
    以太坊MPT树的HP(Hex-Prefix)编码
  • 原文地址:https://www.cnblogs.com/fleas/p/5723844.html
Copyright © 2011-2022 走看看