gpt4 book ai didi

ios - 应用程序打开 wkwebview,无法滚动并等待 3 秒应用程序崩溃

转载 作者:行者123 更新时间:2023-12-01 23:31:25 25 4
gpt4 key购买 nike

同样的代码运行到iphone se,或者其他一台5s上都不崩溃

坠毁的iPhone是iPhone5s。

此崩溃发生在WKWebview

这是崩溃日志:

Code Type:           ARM-64 (Native)
Parent Process: launchd [1]

Date/Time: 2017-02-21 19:28:26.069 +0800
Launch Time: 2017-02-21 19:27:45.145 +0800
OS Version: iOS 8.4.1 (12H321)
Report Version: 105

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 12

Last Exception Backtrace:
0 CoreFoundation 0x1846a022c __exceptionPreprocess + 132
1 libobjc.A.dylib 0x19631c0e4 objc_exception_throw + 60
2 CoreFoundation 0x1846a72f4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 220
3 CoreFoundation 0x1846a40a8 ___forwarding___ + 928
4 CoreFoundation 0x1845a696c _CF_forwarding_prep_0 + 92
5 UIKit 0x189156814 -[UIGestureRecognizer _delegateShouldReceiveTouch:] + 152
6 UIKit 0x1891565f4 -[UITouchesEvent _addGestureRecognizersForView:toTouch:currentTouchMap:newTouchMap:] + 912
7 UIKit 0x18914977c -[UITouchesEvent _addTouch:forDelayedDelivery:] + 624
8 UIKit 0x1891494c0 _AddTouchToEvent + 196
9 UIKit 0x1893bdc80 _UIApplicationHandleEventFromQueueEvent + 14236
10 UIKit 0x18911b488 _UIApplicationHandleEventQueue + 1716
11 CoreFoundation 0x184657f8c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24

最佳答案

在ios8设置

allowsBackForwardNavigationGestures = YES;

然后设置

allowsBackForwardNavigationGestures = NO;

当你触摸WKWebView时应用程序会崩溃

关于ios - 应用程序打开 wkwebview,无法滚动并等待 3 秒应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42366290/

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