zoukankan      html  css  js  c++  java
  • tableView代理方法的执行顺序

    代理 先判断 1.  有几个section 2. 每个section 多少个cell

    如果  

    设置的值都为0  那么就不执行 

    -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{}

    这个方法了

     

     

    -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

        

        NSLog(@"numberOfRowsInSection返回0时候就不用执行cellForRowAtIndexPath"); 

        return  0;

  • 相关阅读:
    yii分页
    ajax分页
    批删,全选
    网站开发的愿景
    margin collapse 坍塌
    URI URL URN
    Servlet
    Http请求
    进程间通信
    网络编程
  • 原文地址:https://www.cnblogs.com/zander/p/2585782.html
Copyright © 2011-2022 走看看