在Design界面直接拖放控件的时候,提示AS- This view is not constrained vertically. At runtime it will jump to the left/(0,0) unless you


 

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啦~


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM