【问题标题】:UIToolbar style on iOS7iOS7 上的 UIToolbar 样式
【发布时间】:2013-09-23 16:55:28
【问题描述】:

我正在尝试使我的 iOS 适应 iOS7。我设法修复了大部分错误,但我不明白的一个是我的 UIToolbar 的 barStyle,它不再工作了。

我使用了以下代码:

UIToolbar *toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height, 320, 44)] ;
toolBar.barStyle = UIBarStyleBlackTranslucent;

它在 iOS 6 上运行良好,但在 iOS 7 上我得到的只是一个灰色条,我无法更改它。我该如何解决这个问题?

非常感谢

【问题讨论】:

    标签: ios styles ios7 uitoolbar


    【解决方案1】:

    试试:

     toolBar.tintColor = [UIColor blackColor];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-20
      相关资源
      最近更新 更多