swift----设置图片圆角

来源:互联网 发布:linux ip地址命令 编辑:程序博客网 时间:2024/05/01 21:15

设置表格图片圆角

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    }
0 0