Commit 9ea51051 authored by 汪洋's avatar 汪洋

更好的适配iPhoneX

parent 839c52ac
...@@ -245,11 +245,8 @@ ...@@ -245,11 +245,8 @@
} }
+ (CGFloat)statusBarHeight { + (CGFloat)statusBarHeight {
if ([UIDevice resolutionType] == iPhone58Inches) { CGFloat height = [[UIApplication sharedApplication] statusBarFrame].size.height;
return 44; return height;
} else {
return 20;
}
} }
+ (CGFloat)navigationItemCenterY { + (CGFloat)navigationItemCenterY {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment