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
Nikolay Tymchenko
11 years ago
Commit
775740e90ca745883de6c68a819626bd4b242e9f
1 parent
6403ba1a
Updated example with autoboxed equalTo usage
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
Examples/Masonry iOS Examples/MASExampleConstantsView.m
Examples/Masonry iOS Examples/MASExampleConstantsView.m
View file @
775740e
...
...
@@ -35,11 +35,11 @@
make
.
right
.
equalTo
(
@
-
20
)
;
}];
// auto-boxing macros allow you to simply use scalars and structs, they will be wrapped automatically
[
view2
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
equalTo
(
@50
)
;
make
.
centerX
.
equalTo
(
@0
)
;
make
.
width
.
equalTo
(
@200
)
;
make
.
height
.
equalTo
(
@100
)
;
make
.
center
.
equalTo
(
CGPointMake
(
0
,
50
))
;
make
.
size
.
equalTo
(
CGSizeMake
(
200
,
100
))
;
}];
return
self
;
...
...
Please
register
or
login
to post a comment