您的位置:首页 > 移动开发 > Swift

swift----设置图片圆角

2016-05-05 15:12 435 查看
设置表格图片圆角

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! CustomTableViewCell

// 设置图片圆角
cell.rtImage.layer.cornerRadius = cell.rtImage.frame.size.width / 2
cell.rtImage.clipsToBounds = true

return cell
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: