Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Created October 4, 2013 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save objectiveSee/6823811 to your computer and use it in GitHub Desktop.
Save objectiveSee/6823811 to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kGameCellIdent forIndexPath:indexPath];
if ( cell.tag != 1 ) {
UITapGestureRecognizer tappy = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(_cellTapped:)];
[cell addGestureRecognizer:tappy];
cell.tag = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment