Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
Masonry
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Robert Payne
8 years ago
Commit
dea3d94af74f3d62451f070926f07252eceec66a
1 parent
5e72da67
Deprecations
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
Masonry/ViewController+MASAdditions.h
Masonry/ViewController+MASAdditions.m
Masonry/ViewController+MASAdditions.h
View file @
dea3d94
...
...
@@ -17,13 +17,12 @@
/**
* following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute
*/
@
property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuide
;
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuide
;
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuideTop
;
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuideBottom
;
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuideTop
;
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuideBottom
;
@
property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuide
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuide
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuideTop
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_topLayoutGuideBottom
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuideTop
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@property
(
nonatomic
,
strong
,
readonly
)
MASViewAttribute
*
mas_bottomLayoutGuideBottom
NS_DEPRECATED_IOS
(
8
.
0
,
11
.
0
);
@end
...
...
Masonry/ViewController+MASAdditions.m
View file @
dea3d94
...
...
@@ -12,6 +12,9 @@
@implementation
MAS_VIEW_CONTROLLER
(
MASAdditions
)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
-
(
MASViewAttribute
*
)
mas_topLayoutGuide
{
return
[[
MASViewAttribute
alloc
]
initWithView
:
self
.
view
item
:
self
.
topLayoutGuide
layoutAttribute
:
NSLayoutAttributeBottom
];
}
...
...
@@ -32,7 +35,7 @@
return
[[
MASViewAttribute
alloc
]
initWithView
:
self
.
view
item
:
self
.
bottomLayoutGuide
layoutAttribute
:
NSLayoutAttributeBottom
];
}
#pragma clang diagnostic pop
@end
...
...
Please
register
or
login
to post a comment