ios - MZFormSheetController 断言失败

标签 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'

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

最佳答案

确保您没有多次调用演示方法,我刚遇到这个问题,发现代码被调用了 4 次。将它减少到 1(应该是)修复了断言失败异常。

关于ios - MZFormSheetController 断言失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24863570/

相关文章:

ios - Swift - addTarget() 不与 addSubview() 一起使用

ios - 如何在 NSObject 类中显示 UIAlertView?

iphone - 在应用程序关闭时显示 UIAlertView

cocoa-touch - iOS UIAlertView 其他按钮操作

ios - UIAlertView alertViewShouldEnableFirstOtherButton : disables wrong button on iOS7

ios - 我应该在 iOS 应用程序中的什么位置存储默认字符串列表?

javascript - 为什么 Canvas 上下文 drawImage 在 iPhone 上失败

ios - 制作 UILabel 高度,使其完全适合它包含的字符(使用自动布局)

ios - 我不能在 switch 内沮丧吗? ( swift 3)

ios - 用于更改 UILabel 值的 UIAlertView 文本字段