21 lines
993 B
Objective-C
21 lines
993 B
Objective-C
//
|
|
// ESPVersionMacro.h
|
|
// suite
|
|
//
|
|
// Created by fby on 5/16/16.
|
|
// Copyright © 2016 fby. All rights reserved.
|
|
//
|
|
|
|
#ifndef ESPVersionMacro_h
|
|
#define ESPVersionMacro_h
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
|
|
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
|
|
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
|
|
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
|
|
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
|
|
|
|
|
|
#endif /* ESPVersionMacro_h */
|