...
|
...
|
@@ -12,7 +12,7 @@ For examples take a look at the **Masonry iOS Examples** project in the Masonry |
|
|
Under the hood Auto Layout is a powerful and flexible way of organising and laying out your views. However creating constraints from code is verbose and not very descriptive.
|
|
|
Imagine a simple example in which you want to have a view fill its superview but inset by 10 pixels on every side
|
|
|
```obj-c
|
|
|
UIView *superview = self;
|
|
|
UIView *superview = self.view;
|
|
|
|
|
|
UIView *view1 = [[UIView alloc] init];
|
|
|
view1.translatesAutoresizingMaskIntoConstraints = NO;
|
...
|
...
|
|