_imageView.contentMode = UIViewContentModeScaleAspectFill;
單設(shè)UIViewContentModeScaleAspectFill拆宛,圖片照片會(huì)超出imgview范圍讼撒,所以需要clipsToBounds股耽,切割一下周邊物蝙。
_imageView.contentMode = UIViewContentModeScaleAspectFill;
_imageView.clipsToBounds = YES;