如果alertview用户取消alertivew.
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
    UIALertView alertview = [[UIAlertView alloc] initWithTitle:@"New Answer"
                                             message:@"Your text"
                                                  delegate:self
                                                  cancelButtonTitle:@"Cancel"
                                                  otherButtonTitles:@"OK", nil];
    [alert show]
    if (buttonIndex == 0)
    {
        NSLog(@"ok");
        [[self sectionSelectedDisplay] setText:answerLabel];
    }
    else
    {
        NSLog(@"cancel");
    }
}
+++++++++++++++++++++++++++++
谁能帮我解决这个问题?