Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 快速点击导航栏并崩溃_Ios_Uiviewcontroller_Nested - Fatal编程技术网

Ios 快速点击导航栏并崩溃

Ios 快速点击导航栏并崩溃,ios,uiviewcontroller,nested,Ios,Uiviewcontroller,Nested,我有一个UIViewController,UIBarButtonItem在左上角。点击此按钮将按下另一个UIViewController,该UIViewController具有通常的左上角后退按钮 问题是,如果您在模拟器中反复单击左上角的按钮,会很快变得更容易,但在真实设备上也会发生这种情况,您会得到: nested push animation can result in corrupted navigation bar Finishing up a navigation transitio

我有一个UIViewController,UIBarButtonItem在左上角。点击此按钮将按下另一个UIViewController,该UIViewController具有通常的左上角后退按钮

问题是,如果您在模拟器中反复单击左上角的按钮,会很快变得更容易,但在真实设备上也会发生这种情况,您会得到:

nested push animation can result in corrupted navigation bar

Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
应用程序在使用后不久崩溃

Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: Can't add self as subview
我想这是因为推送动画是在pop动画完成之前开始的

我认为这在iOS 8中才刚刚开始,在8.1.1中仍然会发生


如何修复或解决?

在视图完成显示之前禁用按钮

是的,但这只是一个例子,我在整个应用程序中有很多按钮。有人能确认这是iOS 8中引入的bug吗?每个人都是如何处理的?