gpt4 book ai didi

iphone - 更改分组表边框半径

转载 作者:行者123 更新时间:2023-11-28 17:38:40 24 4
gpt4 key购买 nike

是否可以更改分组 UITableView 的半径?圆角对我的设计来说太过分了。

最佳答案

我认为唯一的方法是为您的表格单元格提供您自己的背景图片。您可以像 Apple 那样提供 3 张图片,让 UITableView 有一种圆润的感觉。

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath根据单元格索引将单元格的 backgroundView 设置为带有所需图像的 UIView。这将允许您设置顶部、中间和底部。

这是一篇不错的文章

http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html

一定要dequeueReusableCellWithIdentifier:

关于iphone - 更改分组表边框半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9027874/

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