-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Avatar imageView tap visual feedback #424
Comments
thanks @ghazel - This is on my list of things to do soon. I've also considered most of these options, but I'm not sure which I prefer yet... |
For my app, I chose (option 1) to return a UIButton. Maybe the API should go even farther and just accept any UIView. This seems the most customizable from a user perspective, if somewhat less convenient. |
If it's a non specific task to be called, you can do this with just this: imageView.userInteractionEnabled = YES; and any touch on any avatar will call the selector you choose |
There is already a tap gesture recognizer that JSQ provides. The issue is that there is no visual feedback of the tap (grey mask applied to the image while the user's finger is down) |
hmm right |
Fixed by completing #319 and set for 6.0 release. See branch release-6.0. |
When tapping an avatar UIImageView, there is no visual feedback during the tap.
If the avatar was instead a UIButton, this would be handled automatically. In fact, casting a properly configured UIButton to UIImageView and returning it from
avatarImageViewForItemAtIndexPath
works pretty much as expected.Three ways to implement this come to mind:
indexPathForItemAtPoint
to get the indexPath, which is a little painSo, how would you prefer this to work? Any other implementation ideas?
The text was updated successfully, but these errors were encountered: