Skip to content

Commit

Permalink
Wait view transition on UINavigationController actions
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Apr 18, 2016
1 parent bfbf809 commit 0d7529e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Obihiro/OBHNavigationControllerObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ - (BOOL)hasTopViewControllerOfClass:(Class)klass {
}

- (void)pushViewControllerObject:(OBHViewControllerObject *)object {
[self ensureAllViewsDidAppear];
[self cacheObject:object];
[self.viewController pushViewController:object.viewController animated:NO];
[self ensureAllViewsDidAppear];
}

- (void)pushViewController:(UIViewController *)viewController {
Expand Down Expand Up @@ -133,6 +135,7 @@ - (void)back {
[self simulateUserAction:^{
[self.viewController popViewControllerAnimated:YES];
}];
[self ensureAllViewsDidAppear];
}

@end

0 comments on commit 0d7529e

Please sign in to comment.