推 kiii210:感謝您,成功了,我之前也是這樣想...但不是用visualFormat 02/12 12:25
→ kiii210:怎麼會這個就不成功..疑惑.. 02/12 12:26
NSLayoutConstraint *constraint =
[NSLayoutConstraint constraintWithItem:self.tableView
attribute:NSLayoutAttributeTop
relatedBy:NSLayoutRelationEqual
toItem:self.view
attribute:NSLayoutAttributeBottom
^^^^^^
Top才對
因為是superview的top跟tableView對齊
multiplier:1.0
constant:0.0f];
※ 編輯: whitefur 來自: 61.230.125.241 (02/12 16:18)
※ 編輯: whitefur 來自: 61.230.125.241 (02/12 16:18)
※ 編輯: whitefur 來自: 61.230.125.241 (02/12 16:19)
推 kiii210:謝謝...我以為是要跟superview的bottom對齊=_= 02/13 22:29
→ kiii210:tableview上面跟superview的下面距離是0 02/13 22:30
→ kiii210:^以為是 02/13 22:30