UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapDetected)];
singleTap.numberOfTapsRequired = 1;
[_settingImg setUserInteractionEnabled:YES];
[_settingImg addGestureRecognizer:singleTap];
-(void)tapDetected{
NSLog(@"single Tap on imageview");
[self performSegueWithIdentifier:@"rankSegue" sender:self];
}
No comments:
Post a Comment