make imageView in InstagramMediaCell & DribbbleShotCell ScaleAspectFill

This commit is contained in:
nixzhu
2015-10-13 17:18:25 +08:00
committed by nixzhu
parent 141076b69e
commit 20a641a0ae
2 changed files with 4 additions and 2 deletions
@@ -18,7 +18,8 @@ class DribbbleShotCell: UICollectionViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
imageView.contentMode = .ScaleAspectFill
}
func configureWithDribbbleShot(shot: DribbbleWork.Shot) {
@@ -18,7 +18,8 @@ class InstagramMediaCell: UICollectionViewCell {
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
imageView.contentMode = .ScaleAspectFill
}
func configureWithInstagramMedia(media: InstagramWork.Media) {