【发布时间】:2018-09-25 07:04:57
【问题描述】:
【问题讨论】:
-
你的 imageView 的帧大小是多少?你能展示一下 UIImageView 的布局吗?
标签: swift4 android-custom-view custom-cell xcode10
【问题讨论】:
标签: swift4 android-custom-view custom-cell xcode10
你可以试试这样的
@IBOutlet weak var imageView: UIImageView!
// makes it circle if Width == Height
imageView.layer.cornerRadius = imageView.frame.width / 2
//Bordering
imageView.layer.borderColor = UIColor.black.cgColor
imageView.layer.borderWidth = 1
【讨论】: