- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我开发了一个应用程序,其中我将一个 View Controller 的 View 添加到另一个 View Controller 的 View 中。 rootviewcontroller 有许多按钮,点击事件将不同的 viewcontroller 的 View 添加到 rootviewcontroller 的 View 中。其他按钮工作正常。但一个按钮使应用程序崩溃。当我们点击那个按钮时,它添加了 viewconroller,它有一个 webview,其中加载了一个静态字符串。
if(interfaceOrientation != UIInterfaceOrientationPortrait && interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown)
{
self.uiwebViewAboutUs = self.webview_ld;
self.view = self.landscape_ipad;
}
else{
self.uiwebViewAboutUs = self.webview_pt;
self.view = self.portrait_ipad;
}
-(void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
NSString *content = @"Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.";
[self.uiwebViewAboutUs loadHTMLString:content baseURL:nil];
}
崩溃报告在这里。
Incident Identifier: 211D86D5-F375-4CA7-B129-95D26A5E60A8
CrashReporter Key: 99eb9331f18d02387a15d4ad454c75a3cd14ea9e
Hardware Model: iPad3,2
Process: SunGroupWP [8334]
Path: /var/mobile/Applications/F07B0EFA-0A65-4C63-A7EA-AB0D772CECD1/SunGroupWP.app/SunGroupWP
Identifier: SunGroupWP
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-30 09:37:58.489 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x30d0888f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x362a5259 objc_exception_throw + 33
2 CoreFoundation 0x30d08789 +[NSException raise:format:] + 1
3 CoreFoundation 0x30d087ab +[NSException raise:format:] + 35
4 CoreFoundation 0x30c7568b -[__NSCFDictionary setObject:forKey:] + 235
5 WebKit 0x354f8043 -[WebPreferences _setStringValue:forKey:] + 151
6 UIKit 0x32ab6e0b -[UIWebView _webViewCommonInit:] + 1547
7 UIKit 0x32b54487 -[UIWebView initWithCoder:] + 99
8 Foundation 0x35b98eaf _decodeObjectBinary + 2699
9 Foundation 0x35b982f5 _decodeObject + 205
10 UIKit 0x32b88811 -[UIRuntimeConnection initWithCoder:] + 113
11 Foundation 0x35b98eaf _decodeObjectBinary + 2699
12 Foundation 0x35b99a3b -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1103
13 Foundation 0x35bba463 -[NSArray(NSArray) initWithCoder:] + 503
14 Foundation 0x35b98eaf _decodeObjectBinary + 2699
15 Foundation 0x35b982f5 _decodeObject + 205
16 UIKit 0x32b87fc5 -[UINib instantiateWithOwner:options:] + 665
17 UIKit 0x32af63c7 -[UIViewController _loadViewFromNibNamed:bundle:] + 247
18 UIKit 0x329d3c59 -[UIViewController loadView] + 89
19 UIKit 0x32949c17 -[UIViewController view] + 51
20 SunGroupWP 0x0002de55 -[SampleDashBoardForIpad btnAboutClicked:] (SampleDashBoardForIpad.m:261)
21 CoreFoundation 0x30c623fd -[NSObject performSelector:withObject:withObject:] + 53
22 UIKit 0x3292be07 -[UIApplication sendAction:to:from:forEvent:] + 63
23 UIKit 0x3292bdc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
24 UIKit 0x3292bda1 -[UIControl sendAction:to:forEvent:] + 45
25 UIKit 0x3292bb11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
26 UIKit 0x3292c449 -[UIControl touchesEnded:withEvent:] + 477
27 UIKit 0x3292a92b -[UIWindow _sendTouchesForEvent:] + 319
28 UIKit 0x3292a319 -[UIWindow sendEvent:] + 381
29 UIKit 0x32910695 -[UIApplication sendEvent:] + 357
30 UIKit 0x3290ff3b _UIApplicationHandleEvent + 5827
31 GraphicsServices 0x3702322b PurpleEventCallback + 883
32 CoreFoundation 0x30cdc523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
33 CoreFoundation 0x30cdc4c5 __CFRunLoopDoSource1 + 141
34 CoreFoundation 0x30cdb313 __CFRunLoopRun + 1371
35 CoreFoundation 0x30c5e4a5 CFRunLoopRunSpecific + 301
36 CoreFoundation 0x30c5e36d CFRunLoopRunInMode + 105
37 GraphicsServices 0x37022439 GSEventRunModal + 137
38 UIKit 0x3293ecd5 UIApplicationMain + 1081
39 SunGroupWP 0x00002afb main (main.m:13)
40 SunGroupWP 0x00002a80 0x1000 + 6784
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x360eb32c __pthread_kill + 8
1 libsystem_c.dylib 0x33d8b208 pthread_kill + 48
2 libsystem_c.dylib 0x33d84298 abort + 88
3 libc++abi.dylib 0x30720f64 abort_message + 40
4 libc++abi.dylib 0x3071e346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x362a5350 _objc_terminate + 140
6 libc++abi.dylib 0x3071e3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3071e44a std::terminate() + 14
8 libc++abi.dylib 0x3071f81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x362a52a2 objc_exception_rethrow + 6
10 CoreFoundation 0x30c5e506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x30c5e366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x37022432 GSEventRunModal + 130
13 UIKit 0x3293ecce UIApplicationMain + 1074
14 SunGroupWP 0x00002af4 main (main.m:13)
15 SunGroupWP 0x00002a78 0x1000 + 6776
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x360db3a8 kevent + 24
1 libdispatch.dylib 0x3574df04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3574dc22 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x360eb0d8 __psynch_mutexwait + 24
1 libsystem_c.dylib 0x33d40674 pthread_mutex_lock + 376
2 WebCore 0x365d84e8 _ZL17_WebTryThreadLockb + 208
3 WebCore 0x365d87ec _ZL14WebRunLoopLockP19__CFRunLoopObservermPv + 24
4 CoreFoundation 0x30cdcb14 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
5 CoreFoundation 0x30cdad50 __CFRunLoopDoObservers + 252
6 CoreFoundation 0x30cdb16a __CFRunLoopRun + 946
7 CoreFoundation 0x30c5e49e CFRunLoopRunSpecific + 294
8 CoreFoundation 0x30c5e366 CFRunLoopRunInMode + 98
9 WebCore 0x3667bc9c _ZL12RunWebThreadPv + 396
10 libsystem_c.dylib 0x33d4c72e _pthread_start + 314
11 libsystem_c.dylib 0x33d4c5e8 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x360db004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360db1fa mach_msg + 50
2 CoreFoundation 0x30cdc3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x30cdb124 __CFRunLoopRun + 876
4 CoreFoundation 0x30c5e49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x30c5e366 CFRunLoopRunInMode + 98
6 Foundation 0x35b95bb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x35b95a7a -[NSThread main] + 66
8 Foundation 0x35c2958a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x33d4c72e _pthread_start + 314
10 libsystem_c.dylib 0x33d4c5e8 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x360ebcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33d46f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x33d46cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ef79d98 r6: 0x00000002 r7: 0x2fdffa70
r8: 0x00000000 r9: 0x00000000 r10: 0x00189a70 r11: 0x3f82a0f0
ip: 0x00000148 sp: 0x2fdffa64 lr: 0x33d8b20f pc: 0x360eb32c
cpsr: 0x000f0010
Binary Images:
0x1000 - 0x3dfff +SunGroupWP armv7 <659b6f9f2db23dd8bf689984c930f57f> /var/mobile/Applications/F07B0EFA-0A65-4C63-A7EA-AB0D772CECD1/SunGroupWP.app/SunGroupWP
0x2fee9000 - 0x2ff0afff dyld armv7 <77eddfd654df393ba9c95ff01715fd08> /usr/lib/dyld
0x30644000 - 0x30683fff QuickLook armv7 <802b1092542a3017a0380632502610d4> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x3068a000 - 0x306d6fff CoreTelephony armv7 <b8f80d5d594c31d2b5d8fba9fdedb7e1> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
请帮助我..提前致谢
最佳答案
崩溃表明从 XIB 加载 WebView 时出现问题。您可以右键单击 XIB 中的 WebView 并验证连接吗?如果这没有帮助,您可以删除并重新添加 WebView 吗?
关于ios - 单击 UIButton for Webview 加载到 ipad 后应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11288812/
Webview shouldInterceptRequest方法总是返回null。我去了adblocking的use方法。我尝试了很多adblock方法,但是总是需要这个shouldIntercept
在我的 Native React 项目中,我想使用 WebView。 HTML是指外部的css文件,css文件是指一些自定义字体。 鉴于此层次结构: app/ app/index.ios.js app
我在一个页面上有多个 webview,当应用程序加载时,主页面卡住了将近 8-10 秒,我猜测这是所有 webview 加载各自网站所花费的时间,为什么 Ui 卡住了,我怎么能使 webview 加载
nativescript 中的 webview 是否有“导航”事件? 我已经在 Xamarin (c#) 中用 完成了 Browser.Navigating += Myfunction natives
我的浏览器 (webview) 以 HTML 页面开头 FILEJAVA.class.getResource ("FILEHTML.html")。 ToExternalForm () 每当我访问谷歌时
我们正在开发一个 JavaFX 2.x 应用程序,它需要提供一些 GIS 支持。我们得出的结论是,通过嵌入式 WebView 使用 GoogleMaps 是最快的选择。它的问题在于每次我们的应用程序启
有没有办法销毁 WebView 实例?如果页面加载,并说视频开始播放,我希望能够,当我隐藏 WebView 时,基本上可以销毁它,或者至少重置它。 我知道我可以听 visibleProperty 并执
有没有办法在不启用远程模块的情况下在 webview 和主窗口之间进行通信? When this attribute is false the guest page in webview will
我使用以下代码来拦截Web View 中的对话框,但看不到内容或无法与之交互: Element webview= querySelector("#webview"); Map map=new
我正在创建一个页面,该页面将在 Java 的 WebView 中打开,或在外部浏览器中手动打开。如果页面是从 Java 加载的——我需要它来执行特定的回调,因为 Java 被用作一种后端,但如果页面是
我有一个 React Native WebView ,它运行一个小的 HTML 文档。该文档显示了一些图像。 我希望显示位于应用程序的 Documents 文件夹中的图像,即图像不是静态 Assets
我正在使用 JavaFX webview 开发一个网络爬虫。出于抓取目的,我不需要加载图像。当页面被加载时,Webkit 会产生很多 UrlLoader 线程。所以我认为最好禁用图像,这样我会节省很多
这个问题在这里已经有了答案: Android webview launches browser when calling loadurl (11 个答案) 关闭 7 年前。 我花了两天的时间来寻找一
我正在加载一个网页,我想使用基本身份验证登录,我有使用 Swift 的经验并且能够像下面那样执行基本身份验证,但我无法为我的应用程序的 Flutter 版本实现基本身份验证。 ---- swift 代
我用 webview 创建了应用程序,我想在 webview 中加载所有内部链接并在 android 浏览器中加载外部链接。现在的问题是我正在使用 html 广告,当我点击广告时我想打开外部浏览器,但
我需要在父背景图案上显示我的 webview 内容。有没有直接的方法来做到这一点? 最佳答案 这可能有用 final com.sun.webkit.WebPage webPage = com.sun.
是否可以从 webview 中加载的页面读取 http 请求和响应数据。我想要做的是在用户单击 webview 中页面内的链接后从响应中获取二进制数据。任何帮助或线索将不胜感激 最佳答案 创建您自己的
我有一个简单的WebView在 Android 上运行 Web 应用程序。问题是当我旋转手机以将其更改为横向 webview重新加载并回到开头。 我怎样才能防止这种行为? 罗恩 最佳答案 从 Andr
我创建了一个带有 webview 标签的自定义浏览器。当我在 google.it(或 google.com)中导航时,有时会出现一条消息说 chrome 已过时。我的应用版本是: Node.js 8.
我正在使用 Electron 创建简单的网络浏览器。我的用例是我需要通过不同/各自的代理 IP 路由每个 URL。如果用户输入 google.com,则必须通过 123.123.122.1:8081
我是一名优秀的程序员,十分优秀!