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

Commit

Permalink
Merge pull request #16 from ZZBHuang/fix-deselect-issue
Browse files Browse the repository at this point in the history
Fix deselect crash issue
  • Loading branch information
stewwu authored Aug 23, 2016
2 parents 5097b98 + 35e245e commit 25ad69d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion YangMingShan.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'YangMingShan'
s.author = { "Team" => "[email protected]" }
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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 25ad69d

Please sign in to comment.