【问题标题】:UIToolbar not responding to touchUIToolbar 没有响应触摸
【发布时间】:2013-10-24 12:47:11
【问题描述】:

我遇到了类似的问题:UIToolbar at the bottom not working in Retina 4 simulator。 我的 UIToolbar 对我的 iPhone 4 上的触摸没有响应。工具栏可见并且位于屏幕底部。只有当我向上移动它时,它才会响应触摸。 到目前为止,没有任何解决方案对我有用。我正在使用故事板,我已经尝试过 在所有视图控制器上启用use full screen 并将self.view.frame = [UIScreen mainScreen].bounds; 放入我所有的viewdidload 方法中。

我也尝试将 [window setFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)]; 放在我的 appdelegate 中。

【问题讨论】:

    标签: ios objective-c uistoryboard uitoolbar


    【解决方案1】:

    发现了问题。我正在用错误的帧大小初始化我的一个 VC。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-19
      • 2016-11-13
      • 2019-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多