gpt4 book ai didi

iphone - UITableViewCell 中 UIImage 的默认大小是多少?

转载 作者:行者123 更新时间:2023-12-03 18:12:22 25 4
gpt4 key购买 nike

我想在 UITableView 中每行的左侧放置一个 UIImage。这是非常标准的,并且由 UIKit 直接支持。但是放入(大)图像会导致各种不稳定,所以想必我应该自己正确缩放图像。但没有一个文档使用标准的开箱即用 View 给出该图像的默认大小 - 我很惊讶。

SO 上的其他人指出 44 是行的默认高度 ( What is the default height of UITableViewCell? ) 44x44 是“默认”图像大小吗?

谢谢!

最佳答案

40x40

UITableViewCell's imageView fit to 40x40

Need to make imageView filled in 40x40... I am using SDK 3.0 with build in "Cell Objects in Predefined Styles"...

关于iphone - UITableViewCell 中 UIImage 的默认大小是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2122167/

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