gpt4 book ai didi

iphone - 使用图像作为 UITableView 分隔符

转载 作者:行者123 更新时间:2023-12-03 18:31:11 25 4
gpt4 key购买 nike

我的项目中有一个 UITableView,我需要自定义分隔符。我想使用图像而不是颜色。我尝试使用 +colorWithPatternImage: UIColor 方法,但没有成功。

最佳答案

使用此代码,我在我的应用程序中使用它,这将起作用

UIColor *color = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image name"]];
[self.tableview setSeparatorColor:color];

关于iphone - 使用图像作为 UITableView 分隔符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3378117/

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