Commit 502e9a08 authored by 汪洋's avatar 汪洋

iphonex适配

parent 4550197e
......@@ -21,3 +21,8 @@
@interface MAS_VIEW (GMAdditions)
@property (nonatomic, strong) MASViewAttribute *mas_safeBottom;
@end
@interface MASConstraintMaker (GMAdditions)
- (void)mas_bottomToSuperView:(UIView *)view withHeight:(CGFloat)height;
@end
......@@ -8,6 +8,8 @@
#import "GMBaseUtil.h"
@import GMKit;
@import Masonry;
@implementation UIFont (GMBase)
+ (UIFont *)navigationFontWithSize:(NSInteger)size {
UIFont *font = [UIFont systemFontOfSize:size];
......@@ -33,3 +35,12 @@
}
}
@end
@implementation MASConstraintMaker (GMAdditions)
- (void)mas_bottomToSuperView:(UIView *)view withHeight:(CGFloat)height {
self.top.equalTo(view.mas_safeBottom).offset(-height);
self.bottom.mas_equalTo(0);
}
@end
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