iOS图片自适应屏幕 截取

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

/////// 自适应屏幕
_imageViewPics.contentMode = UIViewContentModeScaleAspectFit;
        _imageViewPics.autoresizesSubviews = YES;
        _imageViewPics.autoresizingMask =
        UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
         
         
 
///图片 截取
            _imageViewPic.clipsToBounds = YES;
            _imageViewPic.contentMode = UIViewContentModeCenter;