#define APP_WINDOW [[[UIApplication sharedApplication] delegate] window]
#define SHOW_ALERT(msg) UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@ " 提示 " message:msg delegate:nil cancelButtonTitle:@ " 确定 " otherButtonTitles:nil, nil];\
[alert show];
//宏定义偏好设置
#define USER_D [NSUserDefaults standardUserDefaults]
// 宏定义字体
#define COMMON_FONT [UIFont fontWithName:@ "MicrosoftYaHei" size: 15 ]
// 拨打电话
#define PHONE(number) UIWebView * callWebview = [[UIWebView alloc] init];\
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@ "tel://%@" ,number]]]];\
[self.view addSubview:callWebview];
// 通知中心
#define NOTI_CENTENT [NSNotificationCenter defaultCenter]
#define ScreenSize [[UIScreen mainScreen] bounds].size
// 屏幕的宽 iPhone iPad 通用
#define ScreenWidth (([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.width : [[UIScreen mainScreen] bounds].size.height)
// 屏幕的高 iPhone iPad 通用
#define ScreenHeight (([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.height : [[UIScreen mainScreen] bounds].size.width)
//Document 下文件的路径 , 可直接 NSDictionary *dictionary=[[NSDictionary alloc]initWithContentsOfFile:PlistFilePathName];
#define PlistFilePathName [(NSString *)( (NSArray *)NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES )[ 0 ]) stringByAppendingPathComponent:@ "currentuserinfo.plist" ]
/** 十进制颜色色值转系统颜色 */
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/ 255.0f green:(g)/ 255.0f blue:(b)/ 255.0f alpha:(a)]
/** 十六进制颜色转系统颜色 */
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000 ) >> 16 ))/ 255.0 green:((float)((rgbValue & 0xFF00 ) >> 8 ))/ 255.0 blue:((float)(rgbValue & 0xFF ))/ 255.0 alpha: 1.0 ]
/** iOS 系统版本 */
#define SYSTEM_VERSION() [[UIDevice currentDevice].systemVersion floatValue]
#define ios9x [[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0f
/**iOS 手机型号 */
#define iphone4x_3_5 ([UIScreen mainScreen].bounds.size.height== 480.0f )
#define iphone5x_4_0 ([UIScreen mainScreen].bounds.size.height== 568.0f )
#define iphone6_4_7 ([UIScreen mainScreen].bounds.size.height== 667.0f )
#define iphone6Plus_5_5 ([UIScreen mainScreen].bounds.size.height== 736.0f )
#define SHOW_ALERT(msg) UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@ " 提示 " message:msg delegate:nil cancelButtonTitle:@ " 确定 " otherButtonTitles:nil, nil];\
[alert show];
//宏定义偏好设置
#define USER_D [NSUserDefaults standardUserDefaults]
// 宏定义字体
#define COMMON_FONT [UIFont fontWithName:@ "MicrosoftYaHei" size: 15 ]
// 拨打电话
#define PHONE(number) UIWebView * callWebview = [[UIWebView alloc] init];\
[callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@ "tel://%@" ,number]]]];\
[self.view addSubview:callWebview];
// 通知中心
#define NOTI_CENTENT [NSNotificationCenter defaultCenter]
#define ScreenSize [[UIScreen mainScreen] bounds].size
// 屏幕的宽 iPhone iPad 通用
#define ScreenWidth (([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.width : [[UIScreen mainScreen] bounds].size.height)
// 屏幕的高 iPhone iPad 通用
#define ScreenHeight (([UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIInterfaceOrientationPortraitUpsideDown) ? [[UIScreen mainScreen] bounds].size.height : [[UIScreen mainScreen] bounds].size.width)
//Document 下文件的路径 , 可直接 NSDictionary *dictionary=[[NSDictionary alloc]initWithContentsOfFile:PlistFilePathName];
#define PlistFilePathName [(NSString *)( (NSArray *)NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES )[ 0 ]) stringByAppendingPathComponent:@ "currentuserinfo.plist" ]
/** 十进制颜色色值转系统颜色 */
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/ 255.0f green:(g)/ 255.0f blue:(b)/ 255.0f alpha:(a)]
/** 十六进制颜色转系统颜色 */
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000 ) >> 16 ))/ 255.0 green:((float)((rgbValue & 0xFF00 ) >> 8 ))/ 255.0 blue:((float)(rgbValue & 0xFF ))/ 255.0 alpha: 1.0 ]
/** iOS 系统版本 */
#define SYSTEM_VERSION() [[UIDevice currentDevice].systemVersion floatValue]
#define ios9x [[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0f
/**iOS 手机型号 */
#define iphone4x_3_5 ([UIScreen mainScreen].bounds.size.height== 480.0f )
#define iphone5x_4_0 ([UIScreen mainScreen].bounds.size.height== 568.0f )
#define iphone6_4_7 ([UIScreen mainScreen].bounds.size.height== 667.0f )
#define iphone6Plus_5_5 ([UIScreen mainScreen].bounds.size.height== 736.0f )