// // QNSystem.m // QiniuSDK // // Created by bailong on 15/10/13. // Copyright © 2015年 Qiniu. All rights reserved. // #import #if __IPHONE_OS_VERSION_MIN_REQUIRED #import #import #else #import #endif BOOL isIpV6FullySupported(void) { #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) float sysVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (sysVersion < 9.0) { return NO; } #else NSOperatingSystemVersion sysVersion = [[NSProcessInfo processInfo] operatingSystemVersion]; if (sysVersion.majorVersion < 10) { return NO; } else if (sysVersion.majorVersion == 10) { return sysVersion.minorVersion >= 11; } #endif return YES; }