UITableViewCell imageView.contentMode在3.0中不起作用
在
UITableViewCellStyleDefault
中,在imageView上设置contentMode
没有结果。如果我将构建SDK更改为3.1版,那么一切都会有效。
在3.0上编译时我没有收到任何警告或错误,但是这段代码:
cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
cell.imageView.image = [UIImage imageNamed:[[NSString stringWithFormat:@"%@head.jpg",[gametype objectAtIndex:indexPath.row]]lowercaseString]];
似乎默认为UIViewContentModeCenter,因此我的所有图片都超出了单元格边界并侵占了相邻的单元格。
让我重申一下,如果我将目标更改为3.1,一切正常,所有图片都相应缩放以适合默认的imageView
这是一个已知的错误?
没有找到相关结果
已邀请:
1 个回复
响摔衅幸