how can I remove the top border on UIToolBar

后端 未结 11 736
一生所求
一生所求 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 06:00

    [[UIToolbar appearance] setBackgroundImage:[[UIImage alloc] init] forToolbarPosition:UIBarPositionBottom barMetrics:UIBarMetricsDefault];
    
    [[UIToolbar appearance] setShadowImage:[[UIImage alloc] init] forToolbarPosition:UIBarPositionBottom];
    
    [UIToolbar appearance].barTintColor = [UIColor ...];```
    

提交回复
热议问题