The red box represents the ImageView frame, and the picture below is the original size
Uiviewcontentmodescaletofill, By default, stretches the picture (not proportionally), is full of bouns
Uiviewcontentmodescaleaspectfit, stretched according to the original proportions, is the picture fully displayed in the bouns
Uiviewcontentmodescaleaspectfill, filled by the original proportions so that the picture is displayed in Bouns, may only show part
Uiviewcontentmoderedraw,//Redraw on Bounds change (calls-setneedsdisplay)
Uiviewcontentmodecenter, the image is displayed in the middle of the ImageView, the original size
Uiviewcontentmodetop, picture shown on top of ImageView, original size
Uiviewcontentmodebottom, the image is shown in the lower part of ImageView, the original size
Uiviewcontentmodeleft, the picture is shown on the left side of the ImageView, the original size
Uiviewcontentmoderight, the picture is displayed on the right of the ImageView , the original size
Uiviewcontentmodetopleft, the picture is shown in the upper left of ImageView, the original size
Uiviewcontentmodetopright, the picture is shown in the upper right of ImageView, the original size
Uiviewcontentmodebottomleft, the picture is shown in the lower left of ImageView, the original size
Uiviewcontentmodebottomright, the picture is shown in the lower right part of ImageView, the original size
Contentmode Properties for IOS Uiimageview