Open pandaApe opened 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会显示一个百度的链接,点击这个链接,会加载百度,这时左上角应该有关闭按钮,然而却没有显示。
运行出来后每次第一次加载这个控制器都非常慢。而且会报警告 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)
@zhouxing5311 贴下代码
应该是Pod导致的。我看看
@pandaApe 这个问题貌似是系统的WebKit的原因,当我在点击链接跳转的时候去尝试获取历史列表,并不能获取到结果
具体是什么情况?有示例代码和截图吗?