gpt4 book ai didi

ios - TableviewController/行/图像的问题

转载 作者:行者123 更新时间:2023-11-30 11:08:30 25 4
gpt4 key购买 nike

我正在开发一个应用程序,我的 tableviewcontroller 遇到了一些问题。首先,图片左边有可用空间。我怎样才能使图像更大?或者我怎样才能得到这个,这样就没有可用空间。该图像是一个 cell.imageview ,它从核心数据中获取图像数据。下一个问题是。我的行有一些问题,您可以在图片上看到这一点。我该如何解决这个问题?

enter image description here

最佳答案

您似乎使用了默认的 UITableViewCell 类,但您需要创建它的子类并自定义每个内容

重新分级标签修剪需要将 UILabel 项的 .numberOfLines 属性设置为 0 这样它就可以换行,约束的审查可能是这样的

ImageView : width , height (static/propertional) , top , leading

label : leading to imageView , top - trailing and bottom to cell

这个Using Auto Layout in UITableView for dynamic cell layouts & variable row heights可以帮助您创建动态表格单元

关于ios - TableviewController/行/图像的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52449528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com