【问题标题】:On iOS7, bar button item icons vanished in input accessory view在 iOS7 上,输入附件视图中的栏按钮项图标消失了
【发布时间】:2014-05-10 20:25:38
【问题描述】:

将我的应用从 iOS6.1 移动到 iOS7,我为键盘的 Input Accessory View 创建的工具栏中在 iOS6.1 下可见的所有按钮都不再可见(但仍处于活动状态)。

我尝试了 [myBar setTranslucent:...] 和 [myBar setBarStyle:...] 的所有组合,但无法让这些按钮再次可见。它们被定义为:

      UIBarButtonItem *myButton =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"myImage.png"] style:UIBarButtonItemStylePlain target:self action:@selector(mySelector:)];

有什么想法吗?谢谢!

【问题讨论】:

  • 在此处包含来自 iOS 6 和 iOS 7 的说明性屏幕截图可能会很有用。

标签: ios7 accessoryview


【解决方案1】:

我找到了我的问题的解决方案。

我用来删除 uiwebview 的标准输入附件视图的方法是这个问题的原因,它留下了一些显示的视图,阻止看到新的 UIToolbar 视图。我在 Stackoverflow 中使用了the one described here,它可以工作。

【讨论】:

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