我想動畫從子視圖轉換回超級視圖。動畫removeFromSuperview
我顯示使用子視圖:
[UIView beginAnimations:@"curlup" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[self.view addSubview:self.mysubview.view];
[UIView commitAnimations];
上述工程細。它要回超認爲,我沒有得到任何動畫:
[UIView beginAnimations:@"curldown" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
[self.view removeFromSuperview];
[UIView commitAnimations];
有什麼不同,我應該怎樣做才能讓子視圖移除時的動畫?
它工作得很好...;) – 2011-01-11 08:42:59