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;

    }

  • 相关阅读:
    使用java中的注解@see
    MacOS软件默认安装路径
    学习MACD指标
    go CD 用虚拟机快速增加一个新agent
    git推送本地分支到远程分支
    git如何切换远程仓库
    git命令查看远程分支
    Java 学习札记(一)JDK安装配置
    Oracle 基本操作符
    C# 常用控件属性及方法介绍
  • 原文地址:https://www.cnblogs.com/LiLihongqiang/p/7018495.html
Copyright © 2011-2022 走看看