gpt4 book ai didi

objective-c - iOS 7 : Removing border from a section of grouped-style UITableView

转载 作者:太空狗 更新时间:2023-10-30 03:50:29 24 4
gpt4 key购买 nike

在我移动到 iOS 7/xcode 5 之后,尽管我为 iOS 6 处理了这种情况,但部分的隐藏 border 出现了它对我有用。

在我的代码中,我使用它来隐藏 section 边框,这适用于 iOS 6 但不适用于 iOS 7:

cell.backgroundView =[[UIView alloc] initWithFrame:CGRectZero];

我尝试了这个 question 中的所有答案还有这个one但没有答案对我有用。

请指教。

最佳答案

似乎单个部分中单元格之间的分隔符与 IOS7 中部分的边框相同。我通过在 Interface Builder 中将表格的分隔符属性设置为 None 并为具有多个单元格的部分手动绘制分隔线来解决我的问题。

关于objective-c - iOS 7 : Removing border from a section of grouped-style UITableView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19088574/

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