Skip to content

Instantly share code, notes, and snippets.

@xenda
Created November 22, 2012 16:33
Show Gist options
  • Save xenda/4132019 to your computer and use it in GitHub Desktop.
Save xenda/4132019 to your computer and use it in GitHub Desktop.
UIImageView *dealImage = [[UIImageView alloc] init];
dealImage.frame = CGRectMake(x, y, 62, 62);
dealImage.image = [UIImage imageNamed:@"placeholder_market"];
dealImage.tag = (index + 9*(pageIndex));
dealImage.userInteractionEnabled = YES;
dealImage.multipleTouchEnabled = YES;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(detailsImageAct:)];
tap.delegate = self;
tap.numberOfTapsRequired = 1;
tap.numberOfTouchesRequired = 1;
[dealImage addGestureRecognizer:tap];
[subview addSubview:dealImage];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment