更新EsptouchForIOS
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// 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 */
|
||||
Reference in New Issue
Block a user