【问题标题】:Align UIImageView with UILabel at bottom baseline在底部基线处将 UIImageView 与 UILabel 对齐
【发布时间】:2020-11-13 06:59:48
【问题描述】:

我想将 UILabel 的内容与底层的 UIImageView 对齐但是,我想要这个:

不是这个:

【问题讨论】:

  • 灰色方块只是 UIImageView 的占位符

标签: ios uiimageview alignment uilabel baseline


【解决方案1】:

我设法在界面构建器中解决了这个问题,如下所示:

我将约束从底部更改为最后一个基线。

【讨论】:

    猜你喜欢
    • 2014-12-10
    • 2011-01-02
    • 1970-01-01
    • 2014-12-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多