I have a UIView – which I am using as a makeshift toolbar. It contains several UIButtons. (Six, I think) in a horizontal row.
The fifth button over will only respond to [TouchUpInside] events when I click the left half of it – whereas all the other buttons work correctly.
I have gone crazy making sure there weren’t any other views overlapping it, etc – and everything seems okay.
Any idea of how to investigate further? Is there any way to see an “event inspector” to see where the touch messages may be going?
The problem was as follows:
The “sixth” button was a “Info Light” type button. For some odd reason – even though the bounds of this button were clearly outside of the bounds of the offending “fifth” button – the “info light” button seems to acquire touches a bit outside it’s bounding box.
When I either:
-or-
…the problem went away!
See the two rightmost buttons in this image: