Removed unsupported autolayout combination

Seems like autolayout no longer supports constraining locations to constants. You must constrain them to a view.
This commit is contained in:
Robert Payne 2014-08-05 13:23:43 +12:00
parent 655ea99ff4
commit 9949aba7e8
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ViewController: UIViewController {
view1.snp_makeConstraints { make in
make.top.and.left.equalTo(CGPointZero).insets(padding)
make.top.and.left.equalTo(superview).insets(padding)
make.size.equalTo(CGSizeMake(100, 50))
}