gpt4 book ai didi

iphone - 删除 UITableViewStyleGrouped UITableView 的插图?

转载 作者:行者123 更新时间:2023-12-03 20:00:15 26 4
gpt4 key购买 nike

有谁知道在 iOS 上使用 UITableViews 时是否可以删除自动与 UITableViewStyleGrouped 样式一起使用的灰色插图?

我知道 UITableViewStylePlain 没有这些插图,但我试图避免使用 UITableViewStylePlain 带来的“粘性标题 View ”。

或者,也许有一种方法可以在使用 UITableViewStylePlain 时禁用粘性标题 View ?

最佳答案

您可以通过以下方式删除插图

tableView.separatorColor = [UIColor clearColor];

但它也会删除所有表格 View 单元格的边框

关于iphone - 删除 UITableViewStyleGrouped UITableView 的插图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4288568/

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