在-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 里设置你将要返回的cell,只用对需要返回的cell做两件事
1:[cell.layer setMaskToBouns:Yes];
2:[cell.layer setCornerRadius:10];
10只是随便设置的一个数,你可以自己设置
在-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 里设置你将要返回的cell,只用对需要返回的cell做两件事
1:[cell.layer setMaskToBouns:Yes];
2:[cell.layer setCornerRadius:10];
10只是随便设置的一个数,你可以自己设置
本文标题:设置tableViewCell为圆角形状
本文链接:https://www.haomeiwen.com/subject/uqdyittx.html
网友评论