Subview appears underneath superviews layer.border?

前端 未结 4 1413
情歌与酒
情歌与酒 2020-12-01 09:02

I have a UIView in which I define it\'s border in the following manner:

self.layer.borderColor = [UIColor blackColor].CGColor;
self.layer.border         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 09:32

    Depending on your view structure, it might be easier to add the subview to the parent of your main view. It can then overlap the main view and will overlay the border as you requested.

提交回复
热议问题