美文网首页iOS Developer
设置tableViewCell为圆角形状

设置tableViewCell为圆角形状

作者: SwordAndTea | 来源:发表于2017-02-06 00:46 被阅读0次

在-(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