AXWebViewController icon indicating copy to clipboard operation
AXWebViewController copied to clipboard

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

Open pandaApe opened this issue 8 years ago • 6 comments

pandaApe avatar Jan 12 '17 03:01 pandaApe

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

devedbox avatar Jan 12 '17 06:01 devedbox

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会显示一个百度的链接,点击这个链接,会加载百度,这时左上角应该有关闭按钮,然而却没有显示。

pandaApe avatar Jan 17 '17 02:01 pandaApe

运行出来后每次第一次加载这个控制器都非常慢。而且会报警告 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 avatar Feb 16 '17 03:02 zhouxing5311

@zhouxing5311 贴下代码

devedbox avatar Feb 16 '17 04:02 devedbox

应该是Pod导致的。我看看

zhouxing5311 avatar Feb 16 '17 05:02 zhouxing5311

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

devedbox avatar Mar 06 '17 02:03 devedbox