Setting multiple borders on UIView
问题 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. 回答1: Three solutions I can think of: nest a UIView in another one, define one border for each; draw the border yourself in -(void