GMGridView icon indicating copy to clipboard operation
GMGridView copied to clipboard

didTapOnItemAtIndex problem

Open pghodgman opened this issue 12 years ago • 2 comments

I used the examples to create a simple app that displays images instead of the colored boxes. I have a simple object that holds an image and some text that I maps directly into the cells I provide via cellForItemAtIndex. All is good until I hook up the tapping. Since the GridView re-orders the layout of the objects the index provided with didTapOnItemAtIndex does not match the order of image objects in a collection I manage. What do I have to do to make sure my collection of objects (and indexes) matches that of the GMGridView?

pghodgman avatar Sep 04 '12 19:09 pghodgman

Although it is not fair opening an issue related to your personal issues as if GMGridView has anything to do with it, I guess you could try assign 'tag' values for your cell views and read them even though they're reordered.

exalted avatar Nov 12 '12 14:11 exalted

What layout strategy are you using? Default is vertical so maybe you need to change it to horizontal.

ricsantos avatar Jan 12 '13 08:01 ricsantos