Tôi đang làm việc trong đó tôi gọi presentModalViewController
và sau khi hoàn thành (gọi dismissModalViewControllerAnimated:YES
), nó ngay lập tức nên gọi popToRootViewControllerAnimated
.Gọi popToRootViewControllerĐược gọi sau khi loại bỏModalViewControllerAnimated
Nhưng vấn đề là dismissModalViewControllerAnimated:YES
hoạt động bình thường nhưng popToRootViewControllerAnimated
không hoạt động sau đó.
Mã này được hiển thị dưới đây:
[self.navigationController dismissModalViewControllerAnimated:YES] ;
[self.navigationController popToRootViewControllerAnimated:YES];
Cảm ơn jorge. nó làm việc cho tôi. –