UITableViewCell分组样式中的方形而不是圆角 [英] Square instead of rounded corners in UITableViewCell grouped style

查看:130
本文介绍了UITableViewCell分组样式中的方形而不是圆角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的分组tableview单元格而不是默认的圆角设置方角,我不只是想使用图像来产生这种效果。有可能吗?

I want to have square corners for my grouped tableview cells instead of the default rounded corners, and I don't just want to use an image to give that effect. Is it possible?

推荐答案

最简单的说,在你的 tableView:cellForRowAtIndexPath:使用

Most simply, in your tableView:cellForRowAtIndexPath: use

cell.backgroundView = [[[UIView alloc] initWithFrame:cell.bounds] autorelease];

这篇关于UITableViewCell分组样式中的方形而不是圆角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆