#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 //数字
本文档详细介绍了在iOS开发中使用的宏定义,包括URL基地址、标签栏标题偏移、字体颜色及红色定义。此外,还涉及了设备尺寸判断、系统版本检查、警告对话框展示等实用代码片段。
1463

被折叠的 条评论
为什么被折叠?



