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 #18 from ZZBHuang/fix-duplicate-selection
Browse files Browse the repository at this point in the history
Fix duplicate selection
  • Loading branch information
stewwu authored Aug 29, 2016
2 parents 25ad69d + 83a688a commit dea2d41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://travis-ci.org/yahoo/YangMingShan.svg?branch=master)](https://travis-ci.org/yahoo/YangMingShan)
[![CocoaPods](https://img.shields.io/cocoapods/v/YangMingShan.svg?maxAge=2592000?style=flat-square)](https://cocoapods.org/?q=yangmingshan)

YangMingShan is a collection of iOS UI components that we created while building Yahoo apps. The reason we open source it is to share useful and common componets with the community. Feel free to open the feature request ticket for new UI component you see on Yahoo apps or send pull-request to benefit open source community.
YangMingShan is a collection of iOS UI components that we created while building Yahoo apps. The reason we open source it is to share useful and common components with the community. Feel free to open the feature request ticket for new UI component you see on Yahoo apps or send pull-request to benefit open source community.

Installation
-------
Expand Down
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" => "yang-ming-shan@yahoo-inc.com" }
s.version = '1.2.1'
s.version = '1.2.2'
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 @@ -195,10 +195,11 @@ - (void)collectionView:(UICollectionView *)collectionView didHighlightItemAtInde

- (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
if (!self.canAddPhoto) {
UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath];
if (!self.canAddPhoto
|| cell.isSelected) {
return NO;
}
UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath];
if ([cell isKindOfClass:[YMSPhotoCell class]]) {
YMSPhotoCell *photoCell = (YMSPhotoCell *)cell;
[photoCell setNeedsAnimateSelection];
Expand Down

0 comments on commit dea2d41

Please sign in to comment.