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

不能在iOS8.0以下的系统运行,原因是编译宏不对__IPHONE_OS_VERSION_MAX_ALLOWED #1

Closed qimuya3 closed 8 years ago

qimuya3 commented 8 years ago

// 当前SDK系统支持的最小版本 IPHONE_OS_VERSION_MIN_REQUIRED // 当前SDK系统支持的最大版本 IPHONE_OS_VERSION_MAX_ALLOWED

所以,不能通过__IPHONE_OS_VERSION_MAX_ALLOWED来进行编译控制,只能在运行时判断iOS系统。

devedbox commented 8 years ago

__IPHONE_OS_VERSION_MAX_ALLOWED 用来判断当前SDK版本以选择需要编译的部分。如果不加的话,在低版本的Xcode里边引用高版本SDK的API的时候,静态编译通过不了!