我认为这些信息更容易找到:-)
UITableViewCell的默认高度是多少?它看起来像44像素,但我更愿意确定.
我在tableView和detailView中使用相同的大图像.当tableView中显示imags时,需要使imageView填充40x40,但是在半个屏幕上拉伸.我玩了几个属性,但没有积极的结果:
[cell.imageView setBounds:CGRectMake(0, 0, 50, 50)];
[cell.imageView setClipsToBounds:NO];
[cell.imageView setFrame:CGRectMake(0, 0, 50, 50)];
[cell.imageView setContentMode:UIViewContentModeScaleAspectFill];
Run Code Online (Sandbox Code Playgroud)
我正在使用SDK 3.0,内置"预定义样式中的单元对象".