UIGestureRecognizerたとえば、ユーザーが右にスワイプしたときに使用しているUIAlertView場合、右にスワイプするアクションを本当に実行したいかどうかを尋ねたいと思います。
私はそうしようとしましたが、成功しませんでした。
UIGestureRecognizerたとえば、ユーザーが右にスワイプしたときに使用しているUIAlertView場合、右にスワイプするアクションを本当に実行したいかどうかを尋ねたいと思います。
私はそうしようとしましたが、成功しませんでした。
UIGestureRecogniserイベントメソッドで、適切なタイトル/メッセージを使用してを作成しますUIAlertView。  
のデリゲートをに設定するUIAlertViewとself、alertView:didDismissWithButtonIndex:ユーザーがタップした内容に基づいてアクションを実行することも、実行しないこともできます。
このようにしてください、
UISwipeGestureRecognizer *gesture1 = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeRight:)];
gesture1.direction = UISwipeGestureRecognizerDirectionRight;
[yourView addGestureRecognizer:gesture1];
アクションメソッドでは、
-(void)didSwipeLeft:(UIGestureRecognizer *)gestureRecognizer {
    UIAlertView *Alert = [[UIAlertView alloc] initWithTitle:@"" message:@"Are you sure to commit with its action" delegate:self cancelButtonTitle:CKString(@"NO") otherButtonTitles:CKString(@"YES"),nil];
    [Alert show];
    Alert.tag=222;
    Alert.delegate=self;
    [Alert release];
}
AlertViewデリゲートで
-(void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    if(alertView.tag==222) {
        if(buttonIndex==1)
        {
            //// Yes condition
        } else {
           ///// No condition
        }
    }
}