From 61d66bc9da6908e5a00c232d538ad3fb1dd7bde3 Mon Sep 17 00:00:00 2001 From: tilltue Date: Wed, 12 Jul 2017 02:36:33 +0900 Subject: [PATCH] bug fix. --- TLPhotoPicker/Classes/TLPhotosPickerViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift index f0da72d6..9a04f99b 100644 --- a/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift +++ b/TLPhotoPicker/Classes/TLPhotosPickerViewController.swift @@ -719,7 +719,7 @@ extension TLPhotosPickerViewController: UITableViewDelegate,UITableViewDataSourc cell.thumbImageView.image = collection.thumbnail cell.titleLabel.text = collection.title cell.subTitleLabel.text = "\(collection.count)" - if let phAsset = collection.getAsset(at: 0), collection.thumbnail == nil { + if let phAsset = collection.getAsset(at: collection.useCameraButton ? 1 : 0), collection.thumbnail == nil { let scale = UIScreen.main.scale let size = CGSize(width: 80*scale, height: 80*scale) self.photoLibrary.imageAsset(asset: phAsset, size: size, completionBlock: { [weak cell] image in