Created
November 22, 2012 16:33
-
-
Save xenda/4132019 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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