devedbox / AXWebViewController

AXWebViewController is a webViewController to browse web content inside applications. It’s a lightweight controller on iOS platform based on WKWebView (UIWebView would be the base Kit under iOS 8.0). It added navigation tool bar to refresh, go back, go forward and so on. It support the navigation style on WeChat. It is a simple-using and convenient web view controller using inside applications.
MIT License
797 stars 133 forks source link

第一次进入ViewController 加载的是 HTML或者Data,叉叉的显示会不正确 #12

Open pandaApe opened 7 years ago

devedbox commented 7 years ago

具体是什么情况?有示例代码和截图吗?

pandaApe commented 7 years ago

Demo,TabbarViewController2,换成下面这个。

- (void)viewDidLoad {
    [super viewDidLoad];
//   [self loadURL:[NSURL URLWithString:@"https://www.baidu.com"]];

    NSString *str = @"<p><a href=\"https://www.baidu.com\" target=\"_self\" title=\"https://www.baidu.com\">https://www.baidu.com</a><br/></p>";

    [self loadHTMLString:str baseURL:[NSURL URLWithString:@"https://www.baidu.com"]];
}

webview会显示一个百度的链接,点击这个链接,会加载百度,这时左上角应该有关闭按钮,然而却没有显示。

zhouxing5311 commented 7 years ago

运行出来后每次第一次加载这个控制器都非常慢。而且会报警告 objc[3809]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x122646910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x122470210). One of the two will be used. Which one is undefined. 2017-02-16 11:18:52.732 xiaojiujinfu[3809:511272] unexpected nil window in __dispatchPreprocessedEventFromEventQueue, _windowServerHitTestWindow: (null) 2017-02-16 11:18:52.733 xiaojiujinfu[3809:511272] unexpected nil window in __dispatchPreprocessedEventFromEventQueue, _windowServerHitTestWindow: (null)

devedbox commented 7 years ago

@zhouxing5311 贴下代码

zhouxing5311 commented 7 years ago

应该是Pod导致的。我看看

devedbox commented 7 years ago

@pandaApe 这个问题貌似是系统的WebKit的原因,当我在点击链接跳转的时候去尝试获取历史列表,并不能获取到结果