소스 검색

Removed unsupported autolayout combination

Seems like autolayout no longer supports constraining locations to constants. You must constrain them to a view.
Robert Payne 11 년 전
부모
커밋
9949aba7e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SnappyExample/ViewController.swift

+ 1 - 1
SnappyExample/ViewController.swift

@@ -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))
         }