IOS UIImageView的加载图片方式

2015-12-11  本文已影响426人  shanshan950224

UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"图片"]];
    /*
     UIViewContentModeScaleToFill,
// contents scaled to fit with fixed aspect. remainder is transparent
     UIViewContentModeScaleAspectFit,      
     UIViewContentModeScaleAspectFill,
     */
    imgView.contentMode = UIViewContentModeScaleAspectFit;


上一篇 下一篇

猜你喜欢

热点阅读