UIImageView contentMode

   imageView.contentMode = UIViewContentModeScaleAspectFill;
   imageView.clipsToBounds = YES

推荐阅读更多精彩内容