• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

在Xcode上解决Storyboard的警告

用户头像
it1352
帮助1

问题说明

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

我的故事板:(只需输入2个标签及其约束条件)

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

避免这些警告的最佳方法是什么?

What is the best way to avoid these warnings?

正确答案

#1
    • 追踪提供给Hello,带世界标签!如下图所示的标签给予追踪约束常数 8(您需要的最小差距)并将关系更改为 Grater than或Equal
      • 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.

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhchabbe
系列文章
更多 icon
同类精品
更多 icon
继续加载