문제

I am using a storyboard in my design for iOS 7 and I am getting the following warning when I dismiss a modal:

Warning: Attempt to dismiss from view controller <UITabBarController: 0x8e11120> while a presentation or dismiss is in progress!

The modal is dismissed just fine but I don't like the warning. I am dismissing the modal in the presenting view controller with the following:

- (IBAction)doneButtonPressed:(UIStoryboardSegue *)segue{

   [self.presentedViewController dismissViewControllerAnimated:YES completion:nil];}

I have also tried with segue.sourceViewController with the same results.

Any thoughts?

도움이 되었습니까?

해결책

Found the answer... when you are unwinding don't need to explicitly dismiss the modal controller. That comes from free from the unwind.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top