带参数宏的定义

 

 

#define kColor(r,g,b,a) [UIColor colorWithRed:(r/255.0f) green:(g/255.0f) blue:(b/255.0f) alpha:a]

//在.a文件中取东西

#define PayBundle @"PayBundle.bundle"

#define MYBUNDLE_PATH [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: PayBundle]

#define ResourcePath(fileName) [MYBUNDLE_PATH stringByAppendingPathComponent:fileName]

posted @ 2015-10-10 17:13  上官元空  阅读(223)  评论(0编辑  收藏  举报