瀏覽代碼

Update README.md

Robert Payne 9 年之前
父節點
當前提交
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;