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

运行demo,点击Push 报错,Present正常 #3

Closed fhefh2015 closed 8 years ago

fhefh2015 commented 8 years ago
2016-08-06 11:51:21.033 AXWebViewController[1958:177707] -[WKWebView setAllowsLinkPreview:]: unrecognized selector sent to instance 0x7f8c38d4b100
2016-08-06 11:51:21.036 AXWebViewController[1958:177707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WKWebView setAllowsLinkPreview:]: unrecognized selector sent to instance 0x7f8c38d4b100'
devedbox commented 8 years ago

问题已经修复了

devedbox commented 8 years ago

if IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_9_0

        webVC.webView.allowsLinkPreview = YES;

endif

allowsLinkPreview只有在iOS9.0以上才支持,已经修改