On this following screenshot, if I click on "v" from "Available Kiosks" this is launching the action of the back button... (not with the second "a").
I don't understand why, I've nothing special in my code (this is the default backbutton handled by the navigation controller). I also have the same bug with another application I did but I never notice this on others applications.
Any Ideas ?
Thank you.
That's not a bug, it does the same in Apple apps, and even on some (many / all ?) buttons. It's the behaviour of touch events on buttons : the area of the touch is larger than the button bounds.
I needed to do the same thing and so I ended up swizzling the UINavigationBar touchesBegan:withEvent method and checking the y coordinate of the touch before calling the original method.
This means that when the touch was too close to a button that I was using under the Navigation I could cancel it.
Ex:The back button almost always captured the touch event instead of the "First" Button
Here is my category:
The swizzle implementation by Mike Ash from CocoaDev
And the function calls to the swizzle function
I don't know if Apple is ok with this, it might be infringing on their UI guidelines, I will try to update the post if after I submit the app to the app store.