0
  1. I load two buttons in one view from the NIB.
  2. I set this view as self.navigationItem.rightBarButtonItem in current viewController
  3. I set actions for these buttons

Result:

Buttons work under ios6 - both simulator and device and not working on ios5 device. Any idea to fix it?

pro_metedor
  • 1,176
  • 10
  • 17

2 Answers2

1

I fixed it by set "Autosizing" in "Size inspector".

(in my case, the problem came from resize iPhone5 to iPhone4)

Pokotuz
  • 121
  • 1
  • 5
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.

pro_metedor
  • 1,176
  • 10
  • 17