方法 笔记(二)

//防止图片变形

//防止图片走形  (内容扩展填充固定方面。部分内容可能剪。  contents scaled to fill with fixed aspect. some portion of content may be clipped.)
imageView.contentMode = UIViewContentModeScaleAspectFill; imageView.layer.masksToBounds = YES;

 

posted @ 2016-04-20 10:36  麦兜丶  阅读(94)  评论(0编辑  收藏  举报