の中に 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...
}