/// 单行单参 #define kImage(imgStr) ([UIImage imageNamed:imgStr]) /// 单行多参 #define kMaxOneLine(A,B) (A > B?A:B) /// 多行格式1 #define kMaxAddStr(A,B)\ ({\ [NSString stringWithFormat:@"%@_%@",A,B];\ }) /// 多行格式2 #define kMIN(A,B)\ ({\ __typeof__(A) __a = (A);\ __typeof__(B) __b = (B);\ __a < __b ? __a : __b;\ })\ /// 多行格式 - 弹窗 #define kAlertShow_def(deTailAlign,title,detail)\ {\ ZMAlertView *alert = [[ZMAlertView alloc]init];\ alert.showType = showTypeMiddle;\ [alert zm_AlertViewWithImgVBg:nil titleStr:title detailStr:detail];\ alert.detailLabelAlign = deTailAlign;\ ZMPopVIewBg *pop = [[ZMPopVIewBg alloc]initWithCustomView:alert];\ alert.midBtnClickBlock = ^(UIButton *btn) {\ [pop dismiss];\ };\ [pop show:YES];\ }