0
我使用的是故事板在我的設計爲iOS 7,我得到以下警告時,我解僱一個模式駁回模式在iOS的7故事板的結果:在警告
Warning: Attempt to dismiss from view controller <UITabBarController: 0x8e11120> while a presentation or dismiss is in progress!
模態貶得很好,但我不喜歡這個警告。我解僱在呈現視圖控制器的模式有以下:
- (IBAction)doneButtonPressed:(UIStoryboardSegue *)segue{
[self.presentedViewController dismissViewControllerAnimated:YES completion:nil];}
我也試圖與segue.sourceViewController
具有相同的結果。
有什麼想法?
請檢查:'[self dismissViewControllerAnimated:YES completion:nil];' –
此警告告訴您您試圖同時關閉兩個視圖控制器。你爲什麼要發送完成的方法? – Cutetare
沒有區別。任何想法爲什麼錯誤來自UITabBarController而不是呈現視圖控制器? –