我想解僱一個頁面捲曲的modalviewcontroller。捲曲工作正常,但我似乎無法得到在modalviewcontroller下顯示的tableview。 modalviewcontroller的圖像仍在捲曲頁面之下。如果我在動畫完成之前關閉了模態視圖控制器,則不會顯示動畫。這裏是我的代碼:關閉頁面捲曲的modalviewcontroller
//hide splash screen
- (void)hideSplash{
[UIView beginAnimations:nil context:nil];
//change to set the time
[UIView setAnimationDuration:2];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:modelView cache:NO];
// do your view swapping here
//[[self modalViewController] dismissModalViewControllerAnimated:NO];
[UIView commitAnimations];
//[self.view sendSubviewToBack:self.view];
}
希望有人能幫助!乾杯Nick