how can I remove the top border on UIToolBar

后端 未结 11 704
一生所求
一生所求 2021-02-02 05:14

I have set my UIToolBar tint color to some value, and there is this border line that I see in which I want to remove:

11条回答
  •  深忆病人
    2021-02-02 05:52

    create a 1 pixel x 1 pixel clear image and call it clearPixel.png

    toolbar.setShadowImage(UIImage(named: "clearPixel.png"), forToolbarPosition: UIBarPosition.any)
    

提交回复
热议问题