标签:
UIIimageView *imageView = [UIImageView alloc]init];
[imageView setContentScaleFactor:[[UIScreen mainScreen] scale]];
imageView.contentMode = UIViewContentModeScaleAspectFill;
imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
imageView.clipsToBounds = YES;
设置图片的显示格式不会出现拉伸或者变形的情况
标签:
原文地址:http://www.cnblogs.com/zj901203/p/5018720.html