As I cannot find any questions/answers for this, I imagine it is not possible.
Is there anyway to set multiple borders on a UIView
.
I am currently setting a standard border with .layer.borderWidth
and layer.borderColor
. I am wondering if I can add a multiple strokes/borders effect to the view.
I need a border of 4.0f in white then another 1.0f in another color.
Three solutions I can think of:
-(void)drawRect
;UIImageView
with a resizable; stretchable image of your borders as background (the best solution performance-wise).If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With