diff --git a/JGActionSheet.podspec b/JGActionSheet.podspec index ff833b4..0f4eda7 100644 --- a/JGActionSheet.podspec +++ b/JGActionSheet.podspec @@ -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 \ No newline at end of file +end diff --git a/JGActionSheet/JGActionSheet.m b/JGActionSheet/JGActionSheet.m index b4b097a..8b2fc32 100644 --- a/JGActionSheet/JGActionSheet.m +++ b/JGActionSheet/JGActionSheet.m @@ -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; @@ -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]; @@ -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; @@ -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]; @@ -840,7 +848,9 @@ - (void)moveToPoint:(CGPoint)point arrowDirection:(JGActionSheetArrowDirection)a return; } +#if !defined(JG_APP_EXTENSIONS) [[UIApplication sharedApplication] beginIgnoringInteractionEvents]; +#endif disableCustomEasing = YES; @@ -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) { @@ -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]; @@ -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]; diff --git a/README.md b/README.md index 02fbe51..9093d0e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A feature-rich and modern action sheet for iOS.  

-#####Current Version: 1.0.5 +#####Current Version: 1.0.6 Introduction ===========