我有兩個UIViewController
類,其中在FirstClass
我有一個用於UIButton
登錄,當用戶輕敲按鈕,我將顯示SecondClass
...對於我已經做了,嘗試從視圖控制器以關閉而呈現或駁回正在進行
SecondClass *index = [[SecondClass alloc] init];
[self presentModalViewController:index animated:YES];
在二等,我有一個註銷按鈕,它會重定向到的Firstclass,爲我所做的一切,
[self dismissModalViewControllerAnimated:YES];
,當我在二等按下退出按鈕,我得到的警告味精
**Attempt to dismiss from view controller <FirstClass: 0e39w88e160> while a presentation or dismiss is in progress!**
有什麼問題在這裏..
presentedViewController和dismissViewControllerAnimated:完成:可從的iOS 5.0 – 2013-09-04 12:19:17
感謝@PavelAlexeev,我的文檔驗證和更新我的答案。 – 2013-09-04 14:59:12