修改iPhoneX适配问题

This commit is contained in:
xuemh
2018-03-28 20:46:46 +08:00
parent 4aa8fe2bbc
commit 62c7398284
4 changed files with 35 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
//
// CommonMacros.h
// Ifish
//
// Created by Minghao Xue on 2018/3/28.
// Copyright © 2018年 lianlian. All rights reserved.
//
#ifndef CommonMacros_h
#define CommonMacros_h
#define is_iPhone_X ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
#endif /* CommonMacros_h */