Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMBase
Commits
502e9a08
Commit
502e9a08
authored
Nov 22, 2017
by
汪洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphonex适配
parent
4550197e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
GMBaseUtil.h
GMBase/Classes/GMBaseUtil.h
+5
-0
GMBaseUtil.m
GMBase/Classes/GMBaseUtil.m
+11
-0
No files found.
GMBase/Classes/GMBaseUtil.h
View file @
502e9a08
...
...
@@ -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
GMBase/Classes/GMBaseUtil.m
View file @
502e9a08
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment