Add just a top border to an UIView with Quartzcore/layer?

前端 未结 8 1524
天命终不由人
天命终不由人 2020-12-13 17:58

Is it possible to add a border just on top of a UIView, if so, how please?

8条回答
  •  情歌与酒
    2020-12-13 18:39

    Here's a UIView category that lets you add a layer-back or view-backed border on any side of the UIView: UIView+Borders

提交回复
热议问题