0
我使用目前的UIView動畫時在屏幕負載元件驗證碼:使用的UIView動畫
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self.view addSubview:myView];
[UIView commitAnimations];
和工程罰款。視圖以動畫呈現。
但問題是,當我想刪除此視圖動畫。我使用的是:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:myview cache:YES];
[myview removeFromSuperview];
[UIView commitAnimations];
但使用該方法時removeFromSuperview,認爲只有消失,不用動畫。如果我刪除這個方法,動畫會被執行但是不會消失。
請幫忙嗎?