0

I am using this API in my application. The sample app given is working fine for both iOS7 and 6. After integrating it into my app Tap Gesture is not working on UILeftBarButtonItem in iOS 7, but working in iOS 6. Please see the screen shot below:

enter image description here

Both UIRightBarButtonItems are working fine and their action is getting executed but the left button is not working in iOS7

I have wasted several hours but couldn't figure out why it is not working only in iOS7. I found this thread on SO but no luck.

Any help would be greatly appreciated.

Community
  • 1
  • 1

2 Answers2

1

It's time to answer my question The problem was that I was disabling the refresh button on top right corner of the Navigation Bar on start of the method it triggers and reenabling it later on the basis of subview index but some strange reason it was disabling my leftbar button but in iOs6 it was disabling the Refresh button. There is some problem with the Subview indexing in iOS7.0

0

I am late to answer but you made a serious mistake relying on subview index.

My approach for such a case would be

  1. Make an IBOutlet of UIButton and add it to navigation bar.
  2. When it comes to enable to disable I would use the outlet of button.

Hope that would help anybody else facing this problem.

Pawan Sharma
  • 3,199
  • 1
  • 25
  • 32