UITableViewCell中UIImage的默认大小是多少? [英] What's the default size for the UIImage in a UITableViewCell?

查看:121
本文介绍了UITableViewCell中UIImage的默认大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I want to put a UIImage in the left side of each row in a UITableView. This is pretty standard, and is supported directly by UIKit. But putting in a (large) image causes all kinds of wonkiness, so presumably I'm supposed to scale the thing correctly myself. But none of the docs give a default size for this image using the standard out of the box views-- I'm surprised.

SO上的其他人表示44是行的默认高度( UITableViewCell的默认高度是多少? )44x44是默认图像尺寸吗?

Others on SO indicate that 44 is the default height of a row (What is the default height of UITableViewCell?) Is 44x44 the "default" image size?

谢谢!

推荐答案

40x40

UITableViewCell的imageView适合于40x40


需要将imageView填入40x40 ...我正在使用SDK 3.0并在预定义的单元格对象中构建样式......

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

这篇关于UITableViewCell中UIImage的默认大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆