我必须WKInterfaceImage
通过 Swift 代码设置半径属性。
我需要与其他 UIImageViews 相同的格式:
logoView.layer.cornerRadius = logoView.frame.width / 2
logoView.clipsToBounds = true
logoView.layer.borderWidth = 1.0
logoView.layer.borderColor = UIColor (
red: 0x33 / 255,
green: 0x99 / 255,
blue: 0x66 / 255,
alpha: 1.0
).CGColor
我检查了参考指南,但没有找到解决方案。谢谢你的帮助!