修改iPhoneX适配问题
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user