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 中


- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01