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;

    }

  • 相关阅读:
    Mayan游戏
    选择客栈
    Redundant Paths
    中心选址
    辗转相除
    字符串
    线段覆盖
    配置魔药
    宝库通道
    教官的监视
  • 原文地址:https://www.cnblogs.com/LiLihongqiang/p/7018495.html
Copyright © 2011-2022 走看看