默认TableViewCell的ImageView属性可否修改?how

2025-05-09 20:03:57
推荐回答(3个)
回答(1):

of course it can!

imageview.contentMode should be set to one of the following value:
UIViewContentModeScaleToFill,
UIViewContentModeScaleAspectFit

回答(2):

imageview.contentMode should be set to one of the following value: UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit

回答(3):

override UITableCell的 - (void)layoutSubviews; 方法,在里面指定imageView大小