Questions tagged «wkwebview»

WKWebView对象显示交互式Web内容。它是由Apple的WebKit提供的,该WebKit也可用于macOS,iOS和tvOS。

16
如何确定WKWebView的内容大小?
我正在尝试在iOS 8及更高版本下运行时,用WKWebView实例替换动态分配的UIWebView实例,但找不到确定WKWebView内容大小的方法。 我的Web视图嵌入在较大的UIScrollView容器中,因此,我需要确定Web视图的理想大小。这将允许我修改其框架以显示其所有HTML内容,而无需在Web视图内滚动,而且我将能够为滚动视图容器设置正确的高度(通过设置scrollview.contentSize)。 我尝试过sizeToFit和sizeThatFits没有成功。这是我的代码,该代码创建WKWebView实例并将其添加到容器scrollview中: // self.view is a UIScrollView sized to something like 320.0 x 400.0. CGRect wvFrame = CGRectMake(0, 0, self.view.frame.size.width, 100.0); self.mWebView = [[[WKWebView alloc] initWithFrame:wvFrame] autorelease]; self.mWebView.navigationDelegate = self; self.mWebView.scrollView.bounces = NO; self.mWebView.scrollView.scrollEnabled = NO; NSString *s = ... // Load s from a Core Data field. …

1
Ionic iOS 13.2 Bug,应用程序崩溃-kill()返回了意外错误
我认为Ionic在iOS中有一个巨大的错误。我收到以下错误消息: 2019-11-06 12:09:31.560205+0100 MyApp[6687:1400464] [Process] kill() returned unexpected error 1 2019-11-06 12:09:31.560562+0100 MyApp[6687:1400464] [Process] kill() returned unexpected error 1 2019-11-06 12:09:31.660322+0100 MyApp[6687:1400464] [Process] kill() returned unexpected error 1 2019-11-06 12:09:31.660699+0100 MyApp[6687:1400464] [Process] kill() returned unexpected error 1 2019-11-06 12:09:31.765716+0100 MyApp[6687:1400464] [Process] kill() returned unexpected error 1 2019-11-06 12:09:31.767176+0100 MyApp[6687:1400464] [Process] …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.