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  //数字

posted @ 2014-08-01 10:59  给me一首歌的时间  阅读(97)  评论(0编辑  收藏  举报