更改单元格的角半径,分组为UITableView [英] Changing corner radius of the cells insie a grouped UITableView

查看:126
本文介绍了更改单元格的角半径,分组为UITableView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过数小时的谷歌搜索,我想知道是否可以更改分组UITableView 的角半径。

After hours of googling I am wondering if it is possible to change the corner radius of a grouped UITableView.

我试过


hoursTable.layer.cornerRadius = 5.0;

hoursTable.layer.cornerRadius = 5.0;

但似乎没有任何改变。

but nothing seems to change.

推荐答案

确保表格视图的剪辑子视图与你的代码
hoursTable.layer.cornerRadius = 5.0;

Make sure clip sub views of table view alon with ur code hoursTable.layer.cornerRadius = 5.0;

代码 [hoursTable setClipsToBounds:YES];

by code [hoursTable setClipsToBounds:YES];

hoursTable.layer.cornerRadius = 5.0;
[hoursTable setClipsToBounds:YES];

这篇关于更改单元格的角半径,分组为UITableView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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