Drawing pictures

Because Xib I use the UIImageView, so it has always been the default mode UIViewContentModeScaleAspectFit. So write a stretch of the picture, but the results have not come out Photo Gallery stretched. To finally found the back of the picture drawing mode is set to UIViewContentModeScaleToFill this job.

Reference document:
iOS - ways of drawing pictures

Guess you like

Origin blog.csdn.net/weixin_34295316/article/details/90981086