how can I remove the top border on UIToolBar

后端 未结 11 709
一生所求
一生所求 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:45

    Correct answer is the one by totalitarian...FYI. https://stackoverflow.com/a/14448645/627299

    My response is still below for reference.


    Here's what I did with my WHITE background toolbar...

    whiteToolBar.layer.borderWidth = 1;
    whiteToolBar.layer.borderColor = [[UIColor whiteColor] CGColor];    
    

    Perhaps you could do the same thing with your color instead.

提交回复
热议问题