Separation between Header and first cell -- In plain UITableView(标题和第一个单元格之间的分离——在普通的 UITableView 中)
问题描述
我有一张普通风格的桌子,只有一个部分.我有一个实现的 viewForHeaderInSection: 在节标题中添加自定义视图.
I have a table with with Plain style and only one section. I have a implemented viewForHeaderInSection: to add a custom view in the section header.
我无法在我的表格部分标题视图和我的第一个视图之间看到分隔线细胞.[见附图]
I am not able to see a separation line between my table section header view and my first cell. [See the attached image]
我做错了什么?
推荐答案
自定义页眉和页脚不包含下方/上方的分隔符.您需要自己在自定义视图中实现分隔符(或切换到分组样式,即使使用自定义页眉/页脚,也会在其上方和下方显示组的轮廓).
Custom headers and footers do not contain separators below/above them. You'll need to implement the separator yourself in the custom view (or switch to grouped style, which will show the outline of the group above and below it even with a custom header/footer).
这篇关于标题和第一个单元格之间的分离——在普通的 UITableView 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:标题和第一个单元格之间的分离——在普通的 UITableView 中
基础教程推荐
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
