I Set CornerRadius and BorderWidth for UIbutton in User Defined Runtime Attributes. Without adding layer.borderColor it works Well and Display border in bla
I got answer. Change borderColor instead of layer.borderColor:
and add this code in .m file:
#import @implementation CALayer (Additions) - (void)setBorderColorFromUIColor:(UIColor *)color { self.borderColor = color.CGColor; } @end
Tick properties in Attribute Inspector