Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Commit f75a8c3

Browse files
committed
Fix select/deselect events for camera cell
1 parent dbdf46e commit f75a8c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ - (BOOL)collectionView:(UICollectionView *)collectionView shouldDeselectItemAtIn
281281
- (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath
282282
{
283283
if (indexPath.item == 0) {
284-
// Camera cell doesn't need to be deselected
284+
// The camera cell has no selected/deselected state, so we should present the camera on every touch on the cell
285+
[self yms_presentCameraCaptureViewWithDelegate:self];
285286
return;
286287
}
287288
PHFetchResult *fetchResult = self.currentCollectionItem[@"assets"];

0 commit comments

Comments
 (0)