zoukankan      html  css  js  c++  java
  • iOS自定义组与组之间的距离以及视图

     

     

     

    iOS自定义组与组之间的距离以及视图

    //头视图高度

    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {

        return 10;

    }

     

    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {

        UIView *headerView = [[UIView alloc] init];

        headerView.backgroundColor = [UIColor clearColor];

        return headerView;

    }

     

    //脚视图高度

    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {

        return 5;

    }

     

    - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {

        UIView *footerView = [[UIView alloc] init];

        footerView.backgroundColor = [UIColor clearColor];

        return footerView;

    }

  • 相关阅读:
    查看资源加载各环节具体耗时的利器
    WebStorm 格式化代码快捷键
    Android 如何使edittext默认失去焦点
    html语义化练习易牛课堂代码
    html网页练习豆瓣网
    HTML前期学习总结
    视频课阶段基础知识总结
    MQ、JMS 关系的理解
    Jvm参数配置
    Java泛型
  • 原文地址:https://www.cnblogs.com/LiLihongqiang/p/7018495.html
Copyright © 2011-2022 走看看