Tôi loại bỏ một bộ điều khiển chế độ xem phương thức và sau đó ngay lập tức trình bày một bộ điều khiển chế độ xem khác tuy nhiên tôi hiện không thể sử dụng hoạt ảnh trên cả hai bộ điều khiển chỉ thứ hai.Làm cách nào để trì hoãn giữa 2 hoạt ảnh?
Có cách nào để trì hoãn quá trình để người dùng trải nghiệm cả hình động?
Mã dưới đây hiện đang hoạt động tuy nhiên người dùng chỉ nhìn thấy các hình ảnh động thứ hai rõ ràng là:
// First one configure
detailViewController.modalPresentationStyle = UIModalPresentationFullScreen;
detailViewController.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:detailViewController animated:YES];
//Dismiss first one
[self dismissModalViewControllerAnimated:NO];
//Immediately configure and show second one
navController.modalPresentationStyle = UIModalPresentationFormSheet;
navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:navController animated:YES];
tôi có thể giả sử bạn đã cố gắng ' [tự dismissModalViewControllerAnimated: YES]; 'không sự thành công?? –
[UIView transitionWithView: mysuperview duration: 0.75 tùy chọn: UIViewAnimationTransitionFlipFromRight animations:^{[self dismissModalViewControllerAnimated: NO]; } hoàn thành: nil] –