From 5c80544134cae2f9a4dd2150c500618fd0f541db Mon Sep 17 00:00:00 2001 From: Howard Huang Date: Mon, 29 Aug 2016 09:37:34 +0800 Subject: [PATCH 1/3] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 99a3ada..3349cff 100644 --- a/README.md +++ b/README.md @@ -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 ------- From 562d53c9f988181833f104a44b220a1369223c78 Mon Sep 17 00:00:00 2001 From: Howard Huang Date: Mon, 29 Aug 2016 09:38:42 +0800 Subject: [PATCH 2/3] Fix duplicate selection reported by issue#17 --- .../YMSPhotoPicker/Public/YMSPhotoPickerViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m b/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m index b199821..3bd7ef4 100644 --- a/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m +++ b/YangMingShan/YMSPhotoPicker/Public/YMSPhotoPickerViewController.m @@ -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]; From 83a688a7cd5af536c55144346689f763db566d35 Mon Sep 17 00:00:00 2001 From: Howard Huang Date: Mon, 29 Aug 2016 09:38:54 +0800 Subject: [PATCH 3/3] Bump version --- YangMingShan.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YangMingShan.podspec b/YangMingShan.podspec index ecf538e..2f88b46 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.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"