From 412056e2d29ae6509d9ae0cc974dcb9f4b17d6b5 Mon Sep 17 00:00:00 2001 From: Grigory Lutkov Date: Wed, 2 Dec 2015 17:45:25 +0300 Subject: [PATCH] Fixed bugs --- LGPlusButtonsView.podspec | 2 +- LGPlusButtonsView/LGPlusButtonsView.m | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LGPlusButtonsView.podspec b/LGPlusButtonsView.podspec index ffe565e..c92a2ca 100644 --- a/LGPlusButtonsView.podspec +++ b/LGPlusButtonsView.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'LGPlusButtonsView' - s.version = '1.1.0' + s.version = '1.1.1' s.platform = :ios, '6.0' s.license = 'MIT' s.homepage = 'https://github.com/Friend-LGA/LGPlusButtonsView' diff --git a/LGPlusButtonsView/LGPlusButtonsView.m b/LGPlusButtonsView/LGPlusButtonsView.m index 0e9a5b6..2f76fc2 100644 --- a/LGPlusButtonsView/LGPlusButtonsView.m +++ b/LGPlusButtonsView/LGPlusButtonsView.m @@ -1462,7 +1462,7 @@ - (void)showButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completi animated:animated completionHandler:^(BOOL result) { - if (result && index == _buttonsArray.count) + if (result && index == _buttonsArray.count-1) { if (completionHandler) completionHandler(); @@ -1525,7 +1525,7 @@ - (void)hideButtonsAnimated:(BOOL)animated completionHandler:(void(^)())completi animated:animated completionHandler:^(BOOL result) { - if (result && index == _buttonsArray.count) + if (result && index == _buttonsArray.count-1) { if (completionHandler) completionHandler();