【问题标题】:iPad: How to change the tint color of a navigation bar item in a popover?iPad:如何更改弹出窗口中导航栏项目的色调?
【发布时间】:2013-01-07 08:39:11
【问题描述】:

我正在使用自定义 popoverBackgroundViewClass 将弹出框着色为深灰色。

https://github.com/Scianski/KSCustomUIPopover

popover.popoverBackgroundViewClass = [KSCustomPopoverBackgroundView class];

效果很好,但是如何更改弹出框导航项的色调?弹出框导航栏中的“后退”按钮仍然是标准的蓝色。

【问题讨论】:

    标签: ios ipad popover navbar tint


    【解决方案1】:

    您指定的 contentViewController 显然是 UINavigationController 对吧? 其中有一个 rootViewController。因此,来自 rootViewController 的内容类似于以下内容:

    self.navigationController.navigationBar.tintColor = [UIColor redColor];
    

    ...应该这样做。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多