Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LMAlertView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 7.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
end
7 changes: 6 additions & 1 deletion LMAlertView/CALayer+ModalAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -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]]) {
Expand Down