I wonder if anyone noticed this behavior - searching the Internet or these forums have not canceled anything for me:
[Update: the problem still exists on the iPhone (but not on iPads), as on iOS 7.0.1]
On an iPhone app on iOS 4.2.1, at least up to 3.2 (in the simulator) if you have a toolbar ( UIToolBar — explicitly created or provided by the UINavigationController ) filled with UIBarButtonItem instances of the UIBarButtonItemStyleBordered style (rectangular buttons with rounded borders)
- and you have a significant empty space between them (for example, using an instance of UIBarButtonItem system type UIBarButtonSystemItemFlexibleSpace between two buttons to put it in the far left position and the other on the right) w> I observe the following unexpected behavior:
If you touch an empty space on the toolbar with a considerable distance from the nearest button , this button - unexpectedly - still registers a short press on strong>.
Although you can read this function, it can also be confusing for users, especially if the location of the tap does not give a clear indication of which function is being called. In "thick settlements" where random taps are likely (for example, a game whose elements border the toolbar), this behavior increases the likelihood of accidentally calling functions.
In my particular case, you can click up to 56 pixels to the right of the button and still register the tap.
This behavior occurs both in the simulator and on real devices. Has anyone else had this experience? Am I missing something?
Thanks for listening / help.
source share