MZFormSheetController断言失败

时间:2014-07-21 11:04:26

标签: ios uialertview

我使用自定义AlertView MZFromSheetController,但它给了我以下异常

*** Assertion failure in -[MZFormSheetController presentAnimated:completionHandler:], /Users/dt4it/Documents/SucessQuotes11/SucessQuotes/MZFormSheetController.m:418
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a form sheet transition from to while a transition is already in progress. Wait for didPresentCompletionHandler/didDismissCompletionHandler to know the current transition has completed'

有谁能告诉我如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

确保您没有多次调用表示方法,我只是遇到了这个问题,发现代码被调用了4次。将其降低到1(应该是这样)修复了断言失败异常。