IOS7 navigatinBar tintColor change in popover

前端 未结 2 1220
情书的邮戳
情书的邮戳 2021-01-04 23:36

I developed iPad application. I\'m opening some screens in popover with navigation controller. But I did not change navigationcontroller tint color in IOS 7. How can I chang

2条回答
  •  臣服心动
    2021-01-05 00:16

    The magical word here is barStyle, you need to do the following if you need it black:

    navigationController.navigationBar.barStyle = UIBarStyleBlack;
    navigationController.navigationBar.translucent = NO;
    

    And if you want to change its color:

    navigationController.navigationBar.barTintColor = [UIColor redColor];
    navigationController.navigationBar.barStyle = UIBarStyleBlack;
    navigationController.navigationBar.translucent = NO;
    

提交回复
热议问题