【问题标题】:uilabel with autolayouts resize with padding带有自动布局的 uilabel 使用填充调整大小
【发布时间】:2014-08-25 17:12:30
【问题描述】:

我有一个带有 uitableviewcell 的 uilabel。它使用自动布局调整大小,但不保留填充。自动布局调整uilabel大小后如何添加填充并保持填充

【问题讨论】:

    标签: ios objective-c uilabel autolayout


    【解决方案1】:

    查看本指南,了解如何在 IB 中添加约束。 https://developer.apple.com/Library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html

    基本上,您只需要添加一个约束来确定标签的填充。

    祝你好运!

    【讨论】:

      猜你喜欢
      • 2015-04-04
      • 2014-08-19
      • 1970-01-01
      • 2013-06-14
      • 2018-08-12
      • 1970-01-01
      • 2013-01-22
      • 1970-01-01
      • 2014-02-08
      相关资源
      最近更新 更多