2

I've incorporated the really awesome AQGridView into my project but am having a small problem,

The only delegate method i find is - (void) gridView:(AQGridView *)gridView didSelectItemAtIndex:(NSUInteger)index;

Which only detects a select, meaning - if i select a cell and then want to "deselect" a cell i just clicked, i would have to click on another cell, or click twice on that cell to perform a deselection.

If i could just detect a touch instead i could just trigger the selection, but since it saves the touch status, the problem i just described occurs.

I would love to hear from you guys if you have any info on this or suggestions :)

Kind regards, Shai.

Shai Mishali
  • 9,224
  • 4
  • 56
  • 83
  • 2
    You could tell the grid view to deselect the item when it is selected. In `- (void) gridView:(AQGridView *)gridView didSelectItemAtIndex:(NSUInteger)index;` Call `deselectItemAtIndex:index animated:animated` – Jonathan. Aug 14 '11 at 09:47
  • So simple! thank you ! :) You should write it as an answer and i'll accept it :) – Shai Mishali Aug 14 '11 at 09:57

1 Answers1

4

You could tell the grid view to deselect the item when it is selected. In

- (void) gridView:(AQGridView *)gridView didSelectItemAtIndex:(NSUInteger)index; 

Call

[gridView deselectItemAtIndex:index animated:animated];
Jonathan.
  • 53,997
  • 54
  • 186
  • 290