gpt4 book ai didi

ios - uitableview增加tableview和sectionindex之间的空间

转载 作者:行者123 更新时间:2023-11-28 15:46:53 27 4
gpt4 key购买 nike

我想增加 tableview 和 section-index 之间的间距,如下图所示:

enter image description here

我如何在没有任何肮脏的黑客攻击的情况下实现这一点,因为行是可选的并且如果被选中会得到一个复选标记,所以任何空 View 黑客攻击都不会正常工作,因为复选标记。

现在是这样的:

enter image description here

最佳答案

您需要通过向单元格中添加额外的 Container UIView 来稍微自定义您的设计,这将在单元格右侧添加虚拟间隙,并保持单元格透明。见下图

Storyboard设计 enter image description here

结果

enter image description here

希望对您有所帮助。

干杯。

关于ios - uitableview增加tableview和sectionindex之间的空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42904719/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com