如果当前SDK支持的最低版本
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0
// Check if new API is not available
if (![someData respondsToSelector:@selector(base64EncodedDataWithOptions:)])
{
// Use the old API
base64String = [someData base64Encoding];
}
else
#endif
{
// Use the new API
base64String = [someData base64EncodedDataWithOptions:0];
}