AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you

来源:互联网 发布:小辣椒4g3g2g网络选择 编辑:程序博客网 时间:2024/06/05 00:25

AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you add constraint.


呐,design 拖拽按钮呀文字框过去的时候,text状态会出现的红色警告,说没有添加约束,运行时会跳到(0,0)左上角位置喔


然后呢,design状态下拖过去之后呢,在这小道具右键,Constraint(约束)  Layout->Infer Constraints,点一下,就ok啦~

阅读全文
0 0
原创粉丝点击