diff --git a/YangMingShan.podspec b/YangMingShan.podspec index 074fe99..ecf538e 100644 --- a/YangMingShan.podspec +++ b/YangMingShan.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'YangMingShan' s.author = { "Team" => "yang-ming-shan@yahoo-inc.com" } - s.version = '1.2.0' + s.version = '1.2.1' s.summary = 'The collection of useful UI components that inspired by Yahoo apps.' s.homepage = 'https://github.com/yahoo/YangMingShan' s.license = "Yahoo! Inc. BSD license" diff --git a/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m b/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m index 7339805..b199821 100644 --- a/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m +++ b/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m @@ -260,6 +260,10 @@ - (BOOL)collectionView:(UICollectionView *)collectionView shouldDeselectItemAtIn - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(NSIndexPath *)indexPath { + if (indexPath.item == 0) { + // Camera cell doesn't need to be deselected + return; + } PHFetchResult *fetchResult = self.currentCollectionItem[@"assets"]; PHAsset *asset = fetchResult[indexPath.item-1];