UIAlertView가 닫힌 후보기를 다시로드하고 싶습니다.보기의 경우 을 실행하고보기의 경우 viewWillAppear
을 실행합니다.UIAlertView가 닫힌 후에 어떻게 뷰를 다시로드합니까?
어떻게하면됩니까? 나는 무과 자기 모두에게 위임을 시도했다. 여기 내 코드가있다.
- (IBAction)doStuffWhenUIButtonIsClicked:(id)sender
{
int intSelection = [sender tag];
NSString* strAlertTitle;
NSString* strAlertMessage;
if (intSelection == self.intCorrectChoice) {
strAlertTitle = @"Correct tag!";
}
else {
strAlertTitle = @"Sorry, incorrect tag!";
}
strAlertMessage = @"The correct answer was 8.";
self.answerReaction = [[UIAlertView alloc]
initWithTitle: strAlertTitle
message: strAlertMessage
delegate: nil
cancelButtonTitle:@"Next Question"
otherButtonTitles:nil];
[self.answerReaction show];
}
사용자가 알기로는 사용자가 그 중 하나에 대답 한 후에 새로운 질문을로드하고 싶습니다.