我有 5-10 个不同的按钮UIScrollView
。
我想UILongPressGestureRecognizer
在我的UIScrollView
.
-(IBAction)CheckIfUserWantsToDoSomething:(id)sender {
HoldTimer = [NSTimer scheduledTimerWithTimeInterval:1.2 target:self selector:@selector(DoAction:) userInfo:nil repeats:NO];
}
-(void)DoAction:(id)sender {
[HoldTimer invalidate];
//My Code...
}