ちょうど私たちのgerstures
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer
*)otherGestureRecognizer
{
return YES;
}
For adding longPress add to your view
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)];
longPress.minimumPressDuration=0.8;
longPress.delegate = self;
[self addGestureRecognizer:longPress];
[longPress release];
- (void)longPress:(UILongPressGestureRecognizer*)gesture
{
}
私はそれを試してみましたが動作するようにする方法を下回る上書きするが、それはlongPressに入るのdoesnt:method..andそれは作り付けのポップアップウィンドウが表示されます。 – Developer
私はlongPressに代理人を追加することを忘れると、それは – Narayana
を呼び出すでしょう。 – Developer