From 20a641a0ae5b16d0cbf73076356763952bf67d14 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 13 Oct 2015 17:18:25 +0800 Subject: [PATCH] make imageView in InstagramMediaCell & DribbbleShotCell ScaleAspectFill --- Yep/Views/Cells/DribbbleShot/DribbbleShotCell.swift | 3 ++- Yep/Views/Cells/InstagramMedia/InstagramMediaCell.swift | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Yep/Views/Cells/DribbbleShot/DribbbleShotCell.swift b/Yep/Views/Cells/DribbbleShot/DribbbleShotCell.swift index 33671d6d..b7597ac4 100644 --- a/Yep/Views/Cells/DribbbleShot/DribbbleShotCell.swift +++ b/Yep/Views/Cells/DribbbleShot/DribbbleShotCell.swift @@ -18,7 +18,8 @@ class DribbbleShotCell: UICollectionViewCell { override func awakeFromNib() { super.awakeFromNib() - // Initialization code + + imageView.contentMode = .ScaleAspectFill } func configureWithDribbbleShot(shot: DribbbleWork.Shot) { diff --git a/Yep/Views/Cells/InstagramMedia/InstagramMediaCell.swift b/Yep/Views/Cells/InstagramMedia/InstagramMediaCell.swift index 3ae09e8a..0a52b607 100644 --- a/Yep/Views/Cells/InstagramMedia/InstagramMediaCell.swift +++ b/Yep/Views/Cells/InstagramMedia/InstagramMediaCell.swift @@ -18,7 +18,8 @@ class InstagramMediaCell: UICollectionViewCell { override func awakeFromNib() { super.awakeFromNib() - // Initialization code + + imageView.contentMode = .ScaleAspectFill } func configureWithInstagramMedia(media: InstagramWork.Media) {