Tôi muốn tạo hiệu ứng chuyển tiếp từ chế độ xem con trở lại chế độ xem siêu.Hoạt hình xóaFromSuperview
tôi hiển thị subview sử dụng:
[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];
Các công trình trên tốt. Nó quay trở lại chế độ xem siêu mà tôi không nhận được bất kỳ hoạt ảnh nào:
[UIView beginAnimations:@"curldown" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
[self.view removeFromSuperview];
[UIView commitAnimations];
Có điều gì khác tôi nên làm để làm cho chế độ xem phụ hoạt ảnh khi bị xóa không?
nó hoạt động vey tốt ...;) –