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
ernesto
11 years ago
Commit
537f30c4d6bb7399a23c5bc7558c76b9acf82fd4
1 parent
eb749ae6
Use MAS_View instead of UIView in NSArray+MASAdditions (fixes compilation in OSX)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
Masonry/NSArray+MASAdditions.m
Masonry/NSArray+MASAdditions.m
View file @
537f30c
...
...
@@ -13,8 +13,8 @@
-
(
NSArray
*
)
mas_makeConstraints
:
(
void
(
^
)(
MASConstraintMaker
*
make
))
block
{
NSMutableArray
*
constraints
=
[
NSMutableArray
array
];
for
(
UIView
*
view
in
self
)
{
NSAssert
([
view
isKindOfClass
:[
UIView
class
]],
@"All objects in the array must be views"
);
for
(
MAS_VIEW
*
view
in
self
)
{
NSAssert
([
view
isKindOfClass
:[
MAS_VIEW
class
]],
@"All objects in the array must be views"
);
[
constraints
addObjectsFromArray
:[
view
mas_makeConstraints
:
block
]];
}
return
constraints
;
...
...
@@ -22,8 +22,8 @@
-
(
NSArray
*
)
mas_updateConstraints
:
(
void
(
^
)(
MASConstraintMaker
*
make
))
block
{
NSMutableArray
*
constraints
=
[
NSMutableArray
array
];
for
(
UIView
*
view
in
self
)
{
NSAssert
([
view
isKindOfClass
:[
UIView
class
]],
@"All objects in the array must be views"
);
for
(
MAS_VIEW
*
view
in
self
)
{
NSAssert
([
view
isKindOfClass
:[
MAS_VIEW
class
]],
@"All objects in the array must be views"
);
[
constraints
addObjectsFromArray
:[
view
mas_updateConstraints
:
block
]];
}
return
constraints
;
...
...
Please
register
or
login
to post a comment