[AutoLayout] Review

Q:

在interface builder 里面不可以设置 auto layout 的multiplier 的属性 

A:

把 height 的layout拖到代码里面 

            imageViewHeight = NSLayoutConstraint(item: imageView!, attribute: .Height, relatedBy: .Equal, toItem: self.view, attribute: .Height, multiplier: 0.45, constant: 0)

 其它属性继续interface builder 里面添加可以解决很多问题

 

posted @ 2016-03-20 22:28  baaingSheep  阅读(128)  评论(0编辑  收藏  举报