0
  1. 我从 NIB 的一个视图中加载了两个按钮。
  2. 我将此视图设置为self.navigationItem.rightBarButtonItem当前视图控制器
  3. 我为这些按钮设置了动作

结果:

按钮在 ios6 下工作 - 模拟器和设备,而不是在 ios5 设备上工作。有什么想法可以解决吗?

4

2 回答 2

1

我通过在“尺寸检查器”中设置“自动调整”来修复它,就像这张照片一样。

(在我的情况下,问题来自将 iPhone5 调整为 iPhone4)

http://image.ohozaa.com/i/fd6/TRJDR3.png

于 2012-10-31T16:37:28.287 回答
0

The problem is now solved. This was caused by setting UIViews objects in IB and then setting its class to UIButton. It should have no effect on buttons behaviour, but it had. The more wired was that it did work on iOS 6 and did not in iOS 5.

于 2012-10-29T00:19:32.933 回答