Unresponsive Info Button
05 Sep 2008 07:30 AM Filed in: Development
If there are any iPhone App developers who are curious as to how to solve the unresponsive info button problem, since I spent one of my two Apple Developer Technical Support issues on it I thought I’d share to make it easier for others.
There were essentially three issues:
I hope this helps someone else having similar issues. I got a lot of bug reports about this, and someone mentioned that this isn’t the first app they’ve had with the problem.
There were essentially three issues:
- Overlapping views that aren’t in the same hierarchy can lead to glitchy buttons. The fact that the info (and with 1.2 time set) buttons were in the root hierarchy (as the default project that XCode sets up for you does) while the rest of the chess clock views were in the main hierarchy made their overlapping problematic. What’s worse is that the problem will tend to show up on the actual device but not on the simulator.
- The standard size for the info button is 18x19. That’s not a very big hit area. However, Interface Builder doesn’t let you change it for the standard info button. Since I wanted to put my Info Button under a view I was creating programmatically anyway, the Interface Builder limitation didn’t affect me, but be aware that you’ll have to programmatically set the size of the button to get a better hit area.
- Less transparency offers a bigger hit area. Buttons don’t click over completely transparent areas of the button’s image. My clock set button had a very large amount of transparency, and even the standard info button has a lot. I changed the graphics to be much more opaque. In order to do this for the info button I had to change its type to a custom button and create an info button-like graphic.
I hope this helps someone else having similar issues. I got a lot of bug reports about this, and someone mentioned that this isn’t the first app they’ve had with the problem.
|

