【问题标题】:Change the color of the buttons in a UINavigationController view and buttons (e.g. Back)?更改 UINavigationController 视图和按钮(例如返回)中按钮的颜色?
【发布时间】:2011-03-22 20:45:49
【问题描述】:

UINavigationController 视图和按钮的颜色可以改变吗?

【问题讨论】:

    标签: objective-c xcode ios uinavigationcontroller


    【解决方案1】:

    您可以通过以下方式更改导航栏的颜色:

    UINavigationBar *bar = [self.navigationController navigationBar]; 
    [bar setTintColor:[UIColor redColor]]; 
    

    然后按钮也会选择该颜色。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-13
      • 2020-04-20
      相关资源
      最近更新 更多