From cd8ec45ddb010b86dfcd0ea3e1d7f27a6934a3fc Mon Sep 17 00:00:00 2001 From: nixzhu Date: Mon, 19 Oct 2015 11:45:52 +0800 Subject: [PATCH] QuickPickPhotosCell detail --- Yep/Views/Cells/QuickPickPhotos/QuickPickPhotosCell.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Yep/Views/Cells/QuickPickPhotos/QuickPickPhotosCell.swift b/Yep/Views/Cells/QuickPickPhotos/QuickPickPhotosCell.swift index afbfc8b1..208c8640 100644 --- a/Yep/Views/Cells/QuickPickPhotos/QuickPickPhotosCell.swift +++ b/Yep/Views/Cells/QuickPickPhotos/QuickPickPhotosCell.swift @@ -34,6 +34,7 @@ class QuickPickPhotosCell: UITableViewCell { override func awakeFromNib() { super.awakeFromNib() + photosCollectionView.backgroundColor = UIColor.clearColor() photosCollectionView.registerNib(UINib(nibName: cameraCellID, bundle: nil), forCellWithReuseIdentifier: cameraCellID) photosCollectionView.registerNib(UINib(nibName: photoCellID, bundle: nil), forCellWithReuseIdentifier: photoCellID) photosCollectionView.dataSource = self @@ -42,7 +43,7 @@ class QuickPickPhotosCell: UITableViewCell { if let layout = photosCollectionView.collectionViewLayout as? UICollectionViewFlowLayout { layout.itemSize = CGSize(width: 70, height: 70) layout.minimumInteritemSpacing = 10 - layout.sectionInset = UIEdgeInsetsZero + layout.sectionInset = UIEdgeInsets(top: 0, left: 15, bottom: 0, right: 0) } let options = PHFetchOptions()