Alan Quatermain

The Tumblog of one Jim Dovey, iOS Software Chief Architect at Kobo in Toronto, Ontario.
He Twitters, he has an , and can occasionally be found on LinkedIn or Facebook.
If you have a query, you can ask it here.

This blog contains personal opinions, and is not endorsed by any company.

2977011667
I am working with the AQGridView and am having trouble with a pressed state on each cell. What I need for my app is better feedback so that the user knows that the button was pressed. Basically it should darken like the UIButton does by default, but then return to its normal state when the touch ends.

Darkening on touch wasn't too difficult, but now it stays dark until the next cell is pressed. Thanks for your time!

-Nathan Barry
nathan@thinklegend.com

AskerAnonymous

The standard way to do this (the same applies to UITableView) is to have your controller call -deselectItemAtIndex:animated: when it has finished handling the selection delegation message. The delegation happens on touch-up, so deselecting with animation set to YES will cause the selection to fade out nicely in sync with its action taking place.