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();