iOS UITabBar : Remove top shadow gradient line

前端 未结 15 1303
暖寄归人
暖寄归人 2020-12-02 08:59

I implemented a custom UITabBar and I still have this gradient/shadow on top of it. I added

[self.tabBar setBackgroundImage:[UIImage imageNamed:@\"navBarBotto

15条回答
  •  借酒劲吻你
    2020-12-02 09:45

    Calling [[UITabBar appearance] setShadowImage:] will customise all UITabBar instances in your app.

    If you want to customize just one UITTabBar, you can do this:

    [self.tabBarController.navigationController.navigationBar setShadowImage:[UIImage new]];
    

提交回复
热议问题