首页 > 代码库 > iOS 简单实用的一些宏定义
iOS 简单实用的一些宏定义
#define WDWBaseURL @"http://192.168.1.1/" //字符串
#define TOWERTabBarItemTitleOffset UIOffsetMake (0, -3) //点
#define WDWFontColor3d3d3d [UIColor colorWithRed:61/255.0f green:61/255.0f blue:61/255.0f alpha:1]//颜色
#define WDWRedColo [UIColor colorWithRed:201.0/255.0f green:0.0f blue:0.0f alpha:1]
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO) //bool
#define notIos7 [[UIDevice currentDevice].systemVersion floatValue] < 7.0 //bool
#define ALERT(title,msg,buttonTitle){UIAlertView* alert = [[UIAlertView alloc] initWithTitle:title message:msg delegate:nil cancelButtonTitle:buttonTitle otherButtonTitles:nil];[alert show];} //UIAlertView
#define count1 60 //数字