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 //数字
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。