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

iOS 7.x的设备跳转AXWebViewController时,会出现闪退问题。 #41

Closed wanderer9527 closed 7 years ago

wanderer9527 commented 7 years ago

打扰一下,请教一个问题,我在使用AXWebViewController作为显示载体时,在7.x的设备上会出现闪退问题,其他系统版本显示正常。还是说 我在7.x的设备使用AXWebViewController,需要做其他处理??

devedbox commented 7 years ago

@wanderer9527 把你报错的调用栈贴上来看看

wanderer9527 commented 7 years ago
devedbox commented 7 years ago

@wanderer9527 是真机设备吧?

wanderer9527 commented 7 years ago

没错,是在真机设备,iOS 7.1.2

devedbox commented 7 years ago

@wanderer9527 要不你帮忙看看什么原因吧?😆我没有iOS7的设备啊.

devedbox commented 7 years ago

@wanderer9527 再说现在iOS7都是古董了= =

wanderer9527 commented 7 years ago

@devedbox 已经定位到问题了。 下面这个宏定义有点问题,在iOS7.x的设备,返回YES, __IPHONE_OS_VERSION_MAX_ALLOWED = 103000 这个应该是SDK版本号??

ifndef AX_WEB_VIEW_CONTROLLER_USING_WEBKIT

define AX_WEB_VIEW_CONTROLLER_USING_WEBKIT IPHONE_OS_VERSION_MAX_ALLOWED >= IPHONE_8_0

endif

devedbox commented 7 years ago

@wanderer9527 你看要不你提个pr上来呢?谢谢

wanderer9527 commented 7 years ago

@devedbox 嘿嘿,不客气,我只是找到问题,没想到什么解决方法, 所以我目前从iOS8.x开始支持起,使用AXWeb.