iOS 宏定义

///屏幕宽度

#define KSCREENWIDTH [UIScreen mainScreen].bounds.size.width

///屏幕高度

#define KSCREENHEIGHT [UIScreen mainScreen].bounds.size.height

//系统使用

#define FileManager [NSFileManager defaultManager]

#define UserDefaults [NSUserDefaults standardUserDefaults]

//提示框

#define alertMsg(msg) {UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"提示" message:msg delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil];[alert show];}

//DLog

#ifdef DEBUG

#define DLog(...) NSLog(@"%s %d \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])

#else

#define DLog(...)

#endif


//字体适配

//iphone4 14 iphone5 15 iphone 16 iphone 17

#define ITrip_FONTSIZE    IS_IPHONE4S ? 14:IS_IPHONE5 ?15:IS_IPhone6?16:17

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容