Skip to content

Commit

Permalink
Fix current view controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Aron Balog committed Jan 13, 2017
1 parent 1b72648 commit 529c9fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ARoute.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "ARoute"
s.version = "0.0.14"
s.version = "0.0.15"
s.summary = "ARoute"

s.description = <<-DESC
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.platform = :ios
s.platform = :ios, "8.0"

s.source = { :git => "https://github.com/aronbalog/ARoute.git", :tag => "0.0.14" }
s.source = { :git => "https://github.com/aronbalog/ARoute.git", :tag => "0.0.15" }
s.source_files = "ARoute", "ARoute/**/*.{h,m}"
s.public_header_files = "ARoute/Classes/Public/**/*.h"
s.requires_arc = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ - (void)executeRouteRequest:(ARouteRequest *)routeRequest routeResponse:(void (^
dispatch_async(dispatch_get_main_queue(), ^{
UIViewController *currentViewController;

if ([presentingViewController isKindOfClass:[UIAlertController class]]) {
currentViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
} else {
currentViewController = [UIViewController visibleViewController:nil];
}
currentViewController = [UIViewController visibleViewController:nil];

[currentViewController presentViewController:presentingViewController animated:animated completion:^{
if (routeRequest.configuration.completionBlock) {
Expand Down

0 comments on commit 529c9fc

Please sign in to comment.