UINavigationBar background color not the exact UIColor I set it to

前端 未结 12 1578
天命终不由人
天命终不由人 2020-12-14 00:16

Please look at the screenshot below.

I set all the tint colors from the same UIColor object for the UINavigationBar, search bar and toolbar at the bottom. But for so

12条回答
  •  北海茫月
    2020-12-14 00:44

    The difference between your navigation bar and search bar is because the navigation bar is translucent,the system will apply a default alpha value for the navigation bar.

    Try self.navigationController.navigationBar.translucent = NO;

提交回复
热议问题