【问题标题】:Default back button background image of UIBarButtonItem appears over my customUIBarButtonItem 的默认后退按钮背景图像出现在我的自定义
【发布时间】:2013-12-19 09:26:39
【问题描述】:

在 AppDelegate 中,我正在使用 UIAppearence 设置自定义后退按钮背景图像。

[[UIBarButtonItem appearance] setBackButtonBackgroundImage:image forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:highlightedImage forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];

在某些情况下,按下视图控制器后,默认的后退按钮背景图像会出现在我的自定义上。

【问题讨论】:

    标签: uinavigationcontroller uibarbuttonitem uiappearance


    【解决方案1】:

    它帮助我隐藏了默认图像。

    [[UINavigationBar appearance] setTintColor:[UIColor clearColor]];
    

    【讨论】:

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