zoukankan      html  css  js  c++  java
  • UICollectController

     

    //            [collectionView reloadItemsAtIndexPaths:@[sourceIndexPath]];// 只刷新个别item

                [collectionView reloadSections:[NSIndexSet indexSetWithIndex:sourceIndexPath.section]];// 刷新正给section

     

    - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;

    注意返回的UICollectionReusableView上面的子视图,要设置自动伸缩。例如:_lb.autoresizingMask = UIViewAutoresizingFlexibleWidth;而设置

    self.autoresizesSubviews = YES;不起作用

     

     

    • 九宫格 UICollectController

    1.新建一个xib描述cell

    2.注册xib

    3.collectionView显示cell

    *必须设置数据源(和代理并遵守协议) 

    *实现数据源和代理的方法

     

    layout n. 布局;设计;安排;陈列

    dequeue vi. 出列

  • 相关阅读:
    【数据分析师 Level 1 】17.分类分析
    【数据分析师 Level 1 】16.回归分析
    【数据分析师 Level 1 】15.因子分析
    【数据分析师 Level 1 】14.主成分分析
    2020年年终总结
    【数据分析师 Level 1 】13.数据预处理方法
    【数据分析师 Level 1 】12.数据探索和可视化
    【数据分析师 Level 1 】11.市场调研
    一些关于angular的总结
    Git
  • 原文地址:https://www.cnblogs.com/dengchaojie/p/4743345.html
Copyright © 2011-2022 走看看