摘要:
1、代码实现比较复杂代码实现Autolayout的步骤利用NSLayoutConstraint类创建具体的约束对象添加约束对象到相应的view上1 - (void)addConstraint:(NSLayoutConstraint *)constraint;2 3 - (void)a... 阅读全文
posted @ 2015-06-03 13:15
struggle_time
阅读(919)
评论(0)
推荐(0)
摘要:
在storyboard/xib文件中实现自动布局autolayout1、注意事项autolayout和frame属性是有冲突的,所以如果准备使用autolayout,就不要再代码中对控件的frame属性进行操作。设置autolayout必须设置完全,必须包括位置信息和尺寸信息。也就是说必须有宽高和坐... 阅读全文
posted @ 2015-06-03 07:09
struggle_time
阅读(1146)
评论(5)
推荐(1)

浙公网安备 33010602011771号