【问题标题】:How to set same size images in tableviewcell?如何在 tableviewcell 中设置相同大小的图像?
【发布时间】:2017-06-09 06:41:13
【问题描述】:

我需要表格中的图片大小相同,例如 40x40 或 30x40。我该怎么做?

【问题讨论】:

标签: ios


【解决方案1】:

给imageView设置高度和宽度约束,然后将imageView的clip to bounds属性设置为true。

【讨论】:

    猜你喜欢
    • 2018-07-24
    • 2015-02-28
    • 1970-01-01
    • 2011-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-24
    • 1970-01-01
    相关资源
    最近更新 更多