如果我有一個按鈕,我想用同一個控制器爲默認的「UI頁面幻燈片」設置動畫效果,那麼點擊「nextbutton」時會怎麼做呢?我認爲這會奏效,但事實並非如此。iOS:推動相同的視圖控制器
- (IBAction)NextButton:(id)sender
{
[self.navigationController pushViewController:self animated:YES];
NSInteger CurrentQuestionNumber = [QuestionNumber intValue];
NSInteger NewQuestionNumber = CurrentQuestionNumber + 1;
QuestionNumber = [NSString stringWithFormat:@"%d", NewQuestionNumber];
QuestionNumberLabel.text = QuestionNumber;
QuestionLabel.text = [QuestionsList objectForKey:QuestionNumber];
}
究竟是什麼「不起作用」呢?會發生什麼,而不是你所期望的? –
它只是通過quesitons plist循環......問題之間沒有動畫。 –