Skip to content

Commit

Permalink
Fix: transitioning delegate is transfered to navigation controller if…
Browse files Browse the repository at this point in the history
… possible (#9)
  • Loading branch information
aronbalog authored Oct 11, 2016
1 parent 11a0523 commit 46c1ce4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.10"
s.version = "0.0.11"
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.10" }
s.source = { :git => "https://github.com/aronbalog/ARoute.git", :tag => "0.0.11" }
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 @@ -86,6 +86,9 @@ - (void)pushRouteRequest:(ARouteRequest *)routeRequest routeResponse:(void (^)(A
}

if (navigationController) {
navigationController.delegate = destinationViewController.aroute_transitioningDelegate;
destinationViewController.transitioningDelegate = nil;

[navigationController pushViewController:destinationViewController animated:animated];
if (routeRequest.configuration.completionBlock) {
routeRequest.configuration.completionBlock(routeResponse);
Expand Down

0 comments on commit 46c1ce4

Please sign in to comment.