From b6cfe323022f4ec04f7b8450e1d5a07b303c5f21 Mon Sep 17 00:00:00 2001 From: Arien Lau Date: Wed, 27 Aug 2014 20:39:03 +0800 Subject: [PATCH 1/3] Update LMAlertView.podspec --- LMAlertView.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LMAlertView.podspec b/LMAlertView.podspec index 21da812..a28f392 100644 --- a/LMAlertView.podspec +++ b/LMAlertView.podspec @@ -8,10 +8,10 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/lmcd/LMAlertView.git', :tag => 'v1.1.0' } s.requires_arc = true - s.ios.deployment_target = '7.0' + s.ios.deployment_target = '6.0' s.dependency 'RBBAnimation', '~> 0.3.0' s.dependency 'CAAnimationBlocks', '~> 0.0.1' s.public_header_files = 'LMAlertView/*.h' s.source_files = 'LMAlertView', 'LMAlertView/**/*.{h,m}' -end \ No newline at end of file +end From bcf5bc6461171b5e336bf85723be98c8f5509cae Mon Sep 17 00:00:00 2001 From: liubo12 Date: Fri, 5 Jun 2015 19:11:34 +0800 Subject: [PATCH 2/3] fix bug when use UIWebView on iOS8 --- LMAlertView/CALayer+ModalAlert.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LMAlertView/CALayer+ModalAlert.m b/LMAlertView/CALayer+ModalAlert.m index 085311c..4e86b94 100644 --- a/LMAlertView/CALayer+ModalAlert.m +++ b/LMAlertView/CALayer+ModalAlert.m @@ -26,8 +26,13 @@ + (void)load - (UIWindow *)windowForView:(UIView *)view { UIView *tempView = view; - + if (![tempView respondsToSelector:@selector(superview)]) { + return nil; + } while (tempView.superview != nil) { + if (![tempView respondsToSelector:@selector(superview)]) { + break; + } tempView = tempView.superview; if ([tempView isKindOfClass:[UIWindow class]]) { From bbb70c69804c37ddae8fb729f986fb6902b5689f Mon Sep 17 00:00:00 2001 From: liubo12 Date: Fri, 5 Jun 2015 19:20:25 +0800 Subject: [PATCH 3/3] fix podspec --- LMAlertView.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LMAlertView.podspec b/LMAlertView.podspec index a28f392..fee5c0b 100644 --- a/LMAlertView.podspec +++ b/LMAlertView.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/lmcd/LMAlertView.git', :tag => 'v1.1.0' } s.requires_arc = true - s.ios.deployment_target = '6.0' + s.ios.deployment_target = ‘7.0’ s.dependency 'RBBAnimation', '~> 0.3.0' s.dependency 'CAAnimationBlocks', '~> 0.0.1'