0
我已將viewcontroller與多視圖配合使用。 當我回到以前,沒有動畫 我有以下行的代碼試過,如何在轉到上一個視圖時獲得動畫
-(IBAction)goback
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
[self.view removeFromSuperview];
[UIView commitAnimations];
}
這是多視圖應用 – user328895 2010-05-13 10:31:03
@jaydp真正的答案:因爲它是你的問題,爲什麼不選它作爲答案,如果它是正確的嗎? – 2010-05-13 11:43:50