zoukankan      html  css  js  c++  java
  • iOS UITableViewDelegate UITableViewDataSource 执行顺序

    #pragma mark - Table view data source
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
    
    #pragma mark - Table view delegate
    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
    
    #pragma mark - Table view data source
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
    
    #pragma mark - Table view delegate
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
    
    #pragma mark - Table view delegate
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
    
    #pragma mark - Table view data source
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
    
    #pragma mark - Table view delegate
    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;

    其中有许多代理会执行多次,取决于你代理里面参数的设置

  • 相关阅读:
    mysql_单表查询
    mysql_建表
    MySQL基础
    JS_左边栏菜单
    Vue框架之组件系统
    Vue常用语法及命令
    Django的缓存,序列化,ORM操作的性能
    Django中的form表单
    Django中的auth模块
    AJAX请求提交数据
  • 原文地址:https://www.cnblogs.com/VincentXue/p/2859196.html
Copyright © 2011-2022 走看看