博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
UITableView 当cell的数量不能占满屏幕时 如何在TableFooterView上显示出直达底部的线来
阅读量:2092 次
发布时间:2019-04-29

本文共 441 字,大约阅读时间需要 1 分钟。

UIView *backgroundView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];

    backgroundView.backgroundColor = [UIColor clearColor];

    UIView *timeVLine = [[UIView alloc] initWithFrame:CGRectMake(33, 0, 0.4, 100)];

    [backgroundView addSubview:timeVLine];

    timeVLine.backgroundColor = [UIColor redColor];

    timeVLine.autoresizingMask = UIViewAutoresizingFlexibleHeight;

    tableView.backgroundView = backgroundView;

 

注意:backgroundViewtimeVLine等高

转载地址:http://vcwhf.baihongyu.com/

你可能感兴趣的文章
阿里云《云原生》公开课笔记 第五章 应用编排与管理
查看>>
阿里云《云原生》公开课笔记 第七章 应用编排与管理:Job和DaemonSet
查看>>
阿里云《云原生》公开课笔记 第八章 应用配置管理
查看>>
Leetcode C++《每日一题》20200625 139. 单词拆分
查看>>
Leetcode C++《每日一题》20200626 338. 比特位计数
查看>>
Leetcode C++ 《拓扑排序-1》20200626 207.课程表
查看>>
Go语言学习Part1:包、变量和函数
查看>>
Go语言学习Part2:流程控制语句:for、if、else、switch 和 defer
查看>>
Go语言学习Part3:struct、slice和映射
查看>>
Go语言学习Part4-1:方法和接口
查看>>
Leetcode Go 《精选TOP面试题》20200628 69.x的平方根
查看>>
leetcode 130. Surrounded Regions
查看>>
【Python】详解Python多线程Selenium跨浏览器测试
查看>>
Jmeter之参数化
查看>>
Shell 和Python的区别。
查看>>
【JMeter】1.9上考试jmeter测试调试
查看>>
【虫师】【selenium】参数化
查看>>
【Python练习】文件引用用户名密码登录系统
查看>>
学习网站汇总
查看>>
【Loadrunner】性能测试报告实战
查看>>