ima*_*ple 1 geometry image ios swift3
从下面的代码我只得到椭圆形图像我不知道为什么和我做错了什么..?
self.viewCirlce.layer.cornerRadius = self.viewCirlce.frame.size.width / 2
self.viewCirlce.clipsToBounds = true
Run Code Online (Sandbox Code Playgroud)
此代码用于显示圆形图像
image.layer.borderWidth = 1
image.layer.masksToBounds = false
image.layer.borderColor = UIColor.blackColor().CGColor
image.layer.cornerRadius = image.frame.height/2
image.clipsToBounds = true
Run Code Online (Sandbox Code Playgroud)