如何删除带有圆角和粗边框的UIImageView周围的笔划线

时间:2016-03-19 11:46:39

标签: ios iphone xcode swift ios9

我创建了圆形UIImageView圆角和粗边框:

var img1: UIImageView!
override func viewDidLoad() {
  super.viewDidLoad()
  img1.layer.borderColor = UIColor.whiteColor().CGColor
  img1.layer.borderWidth = 3
  img1.layer.cornerRadius = 22
  img1.layer.masksToBounds = true
}

但是我用它的笔划线围绕它得到以下丑陋的图像: Circle image with stroke

我在这里使用边框宽度来在多个图片之间建立间距,例如:Multiple images

0 个答案:

没有答案