gpt4 book ai didi

ios - 设置 hidesBarsOnSwipe = YES 有时会使应用程序崩溃 (uvSendEvents)

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:34:44 25 4
gpt4 key购买 nike

如果用户反复向上/向下滚动,设置 hidesBarsOnSwipe = YES 有时会使我的应用程序崩溃。我有来自 Crashlytics 的报告,但无法始终如一地重现它。

Fatal Exception: NSInternalInconsistencyException
Trying to finish an interactive transition that was not started interactively
Thread : Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x0000000182154f5c __exceptionPreprocess
1 libobjc.A.dylib 0x0000000196c5bf80 objc_exception_throw
2 CoreFoundation 0x0000000182154e2c +[NSException raise:format:]
3 Foundation 0x0000000183043f3c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UIKit 0x0000000187f237fc -[_UIAnimationCoordinator finishInteractiveAnimation]
5 UIKit 0x0000000187a38980 -[UINavigationController _gestureRecognizedInteractiveHide:]
6 UIKit 0x0000000187c03b0c _UIGestureRecognizerSendTargetActions
7_UIGestureRecognizerSendActions
8 UIKit 0x00000001876dd690 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]
9 UIKit 0x0000000187c04e5c ___UIGestureRecognizerUpdate_block_invoke809
10 UIKit 0x000000018769d0fc _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks
11 UIKit 0x000000018769b1d0 _UIGestureRecognizerUpdate
12 UIKit 0x00000001876db548 -[UIWindow _sendGesturesForEvent:]
13 UIKit 0x00000001876daaac -[UIWindow sendEvent:]
14 UIKit 0x00000001876aba10 -[UIApplication sendEvent:]
15 MyAppName 0x0000000100486d78 uvSendEvents
16 UIKit 0x00000001876a9efc _UIApplicationHandleEventQueue
17 CoreFoundation 0x000000018210c5a4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
18 CoreFoundation 0x000000018210c038 __CFRunLoopDoSources0
19 CoreFoundation 0x0000000182109d38 __CFRunLoopRun
20 CoreFoundation 0x0000000182038dc0 CFRunLoopRunSpecific
21 GraphicsServices 0x000000018d18c088 GSEventRunModal
22 UIKit 0x0000000187712f44 UIApplicationMain
23 MyAppName 0x00000001000ea740 main (main.m:32)
24 libdyld.dylib 0x00000001974868b8 start

我在 openradar 中发现了相同的错误报告,但找不到解决方案。 https://github.com/lionheart/openradar-mirror/issues/236 http://www.openradar.appspot.com/20000000

请帮忙

最佳答案

您有自定义导航栏吗?我有同样的问题,并遵循 Apple NavBar 中使用的自定义模式这个例子为我解决了这个问题(我怀疑它是通过实现 layoutSubviews 和清理 View 层次结构来解决问题的)。

关于ios - 设置 hidesBarsOnSwipe = YES 有时会使应用程序崩溃 (uvSendEvents),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33144289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com