How to resolve the Storyboard's warnings on Xcode? [duplicate]

孤街醉人 提交于 2019-12-18 12:38:58

问题


Trailing(Leading) constraint is missing, which may cause overlapping with other views

My storyboard: (just put 2 labels and their constraints)

What is the best way to avoid these warnings?


回答1:


  • Give Trailing to Hello, Label with World! label like below image give Constant 8 (What minimum gap you need) to Trailing constraint and change Relation to Grater than or Equal.



来源:https://stackoverflow.com/questions/46557266/how-to-resolve-the-storyboards-warnings-on-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!