我可以「蜷縮」這個代碼視圖控制器:我可以在popViewControllerAnimated上「蜷縮」一個頁面嗎?
[UIView beginAnimations:@"animation" context:nil];
[self.navigationController pushViewController:page animated:NO];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
,但我不能捲曲下來的最後一頁是這樣的:
[UIView beginAnimations:@"animation" context:nil];
[self.navigationController popViewControllerAnimated:NO];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
任何想法,爲什麼不呢?我真的很想「倒轉」動畫(就好像一個貼紙已經被剝離,以顯示'推'視圖控制器,當他們點擊一個按鈕時被卡住了。
感謝
天才。:)謝謝。 – 2010-09-13 12:46:53
一味複製粘貼並在第一時間工作。值得投票並推薦解決方案。 – Ans 2014-04-23 11:15:06