怎么让uiimageview 里面的图像填充整个imageview

2025-03-22 15:24:23
推荐回答(1个)
回答1:

[imageView setClipsToBounds:YES];
[imageView setContentMode:UIViewContentModeTopLeft];

这样就可以了,你说的意思应该不是填充了,只是按原来比例放上去而已