gpt4 book ai didi

ios - UITableView 的最后一行的分隔符消失/重新出现

转载 作者:可可西里 更新时间:2023-11-01 06:15:28 25 4
gpt4 key购买 nike

我正在为 iOS 7 开发,我注意到对于非分组表格 View ,最后一行的底部分隔符有时会出现有时会消失。如果我选择该行,它通常会导致它消失,但有时我会得到相反的行为。还有其他人遇到过这个问题吗?

最佳答案

创建您自己的单元格分隔符并将其添加到您的单元格

 UIImageView *customSeperator=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"YourOnePixelImg.png"]];

[customSeperator setFrame:CGRectMake(0, cell.frame.size.height-3, cell.frame.size.width, 2)];

[cell addSubview:customSeperator];

关于ios - UITableView 的最后一行的分隔符消失/重新出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20272623/

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