Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.
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
6 changes: 3 additions & 3 deletions JGActionSheet.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Pod::Spec.new do |s|

s.name = "JGActionSheet"
s.version = "1.0.5"
s.version = "1.0.6"
s.summary = "A feature-rich and modern action sheet for iOS."
s.homepage = "https://github.com/JonasGessner/JGActionSheet"
s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.author = "Jonas Gessner"
s.social_media_url = "http://twitter.com/JonasGessner"
s.platform = :ios, "5.0"
s.source = { :git => "https://github.com/JonasGessner/JGActionSheet.git", :tag => "v1.0.5" }
s.source = { :git => "https://github.com/JonasGessner/JGActionSheet.git", :tag => "v1.0.6" }
s.source_files = "JGActionSheet/*.{h,m}"
s.frameworks = "Foundation", "UIKit", "QuartzCore"
s.requires_arc = true

end
end
16 changes: 16 additions & 0 deletions JGActionSheet/JGActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,9 @@ - (void)layoutForVisible:(BOOL)visible {
- (void)showInView:(UIView *)view animated:(BOOL)animated {
NSAssert(!self.visible, @"Action Sheet is already visisble!");

#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
#endif

_targetView = view;

Expand All @@ -739,7 +741,9 @@ - (void)showInView:(UIView *)view animated:(BOOL)animated {
}

void (^completion)(void) = ^{
#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
#endif

if ([self.delegate respondsToSelector:@selector(actionSheetDidPresent:)]) {
[self.delegate actionSheetDidPresent:self];
Expand Down Expand Up @@ -797,7 +801,9 @@ - (void)showFromPoint:(CGPoint)point inView:(UIView *)view arrowDirection:(JGAct
return [self showInView:view animated:animated];
}

#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
#endif

_targetView = view;

Expand All @@ -808,7 +814,9 @@ - (void)showFromPoint:(CGPoint)point inView:(UIView *)view arrowDirection:(JGAct
}

void (^completion)(void) = ^{
#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
#endif

if ([self.delegate respondsToSelector:@selector(actionSheetDidPresent:)]) {
[self.delegate actionSheetDidPresent:self];
Expand Down Expand Up @@ -840,7 +848,9 @@ - (void)moveToPoint:(CGPoint)point arrowDirection:(JGActionSheetArrowDirection)a
return;
}

#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
#endif

disableCustomEasing = YES;

Expand Down Expand Up @@ -899,7 +909,9 @@ - (void)moveToPoint:(CGPoint)point arrowDirection:(JGActionSheetArrowDirection)a
};

void (^completion)(void) = ^{
#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
#endif
};

if (animated) {
Expand Down Expand Up @@ -980,7 +992,9 @@ - (void)anchorSheetAtPoint:(CGPoint)point withArrowDirection:(JGActionSheetArrow
- (void)dismissAnimated:(BOOL)animated {
NSAssert(self.visible, @"Action Sheet requires to be visible in order to dismiss!");

#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
#endif

void (^completion)(void) = ^{
[_arrowView removeFromSuperview];
Expand All @@ -996,7 +1010,9 @@ - (void)dismissAnimated:(BOOL)animated {

[[NSNotificationCenter defaultCenter] removeObserver:self];

#if !defined(JG_APP_EXTENSIONS)
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
#endif

if ([self.delegate respondsToSelector:@selector(actionSheetDidDismiss:)]) {
[self.delegate actionSheetDidDismiss:self];
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A feature-rich and modern action sheet for iOS.
<img src="JGActionSheet Tests/Screenshots/1.png" width="36.2%"/>&nbsp;
<img src="JGActionSheet Tests/Screenshots/2.png" width="48%"/></p>

#####Current Version: 1.0.5
#####Current Version: 1.0.6

Introduction
===========
Expand Down