我刚刚将我的Xcode ver从7.3更新到8.0,并且一些按钮边框消失了.
代码看起来很好,所以我真的不知道层发生了什么.顺便说一句 - 在其他一些控制器中我可以看到图层边框.
self.button.layer.borderColor = borderColor.CGColor;
self.button.layer.borderWidth = 2;
self.button.layer.cornerRadius = CGRectGetHeight(self.button.frame) / 2;
Run Code Online (Sandbox Code Playgroud)
之前:(图像只是例如 - 边框实时看起来不同)
现在: