Robert Payne 9 жил өмнө
parent
commit
b97cebd73f
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -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;