是否可以更改分组 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/