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
Jonas Budelmann
12 years ago
Commit
b823fcac72e2c3633f44fe6341c5a99db411bf17
1 parent
b0644fc1
Update README.md
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
README.md
README.md
View file @
b823fca
...
...
@@ -76,6 +76,8 @@ or ever shorter
}];
```
For more usage examples take a look at the MasonryExamples project in the Masonry workspace.
## Not all things are created equal
> `.equalTo` equivalent to **NSLayoutRelationEqual**
...
...
@@ -122,8 +124,8 @@ if you want to set view to have a minimum and maximum width you could pass a num
```
obj-c
view.width
.greaterThanOrEqual(@200)
.lessThanOrEqual(@400)
.greaterThanOrEqualTo(@200)
.lessThanOrEqualTo(@400)
```
## Learn to prioritize
...
...
@@ -140,7 +142,7 @@ Priorities are can be tacked on to the end of a constraint chain like so:
```
obj-c
make.left.greaterThanOrEqualTo(label.mas_left).with.priorityLow();
make.top.equal(label.mas_top).with.priority(600);
make.top.equal
To
(label.mas_top).with.priority(600);
```
## Composition, composition, composition
...
...
@@ -177,10 +179,8 @@ make.center.equalTo(button1)
make.center.equalTo(superview).centerOffset(CGPointMake(-5, 10))
```
For more usage examples take a look at the MasonryExamples project in the Masonry workspace.
## Installation
Use the
awe
some
[
CocoaPods
](
http://github.com/CocoaPods/CocoaPods
)
.
Use the
or
some
[
CocoaPods
](
http://github.com/CocoaPods/CocoaPods
)
.
In your Podfile
```
ruby
pod
'Masonry'
...
...
Please
register
or
login
to post a comment