Skip to content

Commit

Permalink
Merge pull request BoltsFramework#31 from ide/selector-warning
Browse files Browse the repository at this point in the history
Update `respondsToSelector` checks to reflect the new method names
  • Loading branch information
bklimt committed May 30, 2014
2 parents 3af58ae + f2be7b7 commit 513935f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bolts/BFAppLinkReturnToRefererController.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ - (void)closeViewAnimated:(BOOL)animated {

- (void)openRefererAppLink:(BFAppLink *)refererAppLink {
if (refererAppLink) {
if ([_delegate respondsToSelector:@selector(returnToRefererController:willOpenAppLink:)]) {
if ([_delegate respondsToSelector:@selector(returnToRefererController:willNavigateToAppLink:)]) {
[_delegate returnToRefererController:self willNavigateToAppLink:refererAppLink];
}

NSError *error = nil;
BFAppLinkNavigationType type = [BFAppLinkNavigation navigateToAppLink:refererAppLink error:&error];

if ([_delegate respondsToSelector:@selector(returnToRefererController:didOpenURL:success:)]) {
if ([_delegate respondsToSelector:@selector(returnToRefererController:didNavigateToAppLink:type:)]) {
[_delegate returnToRefererController:self didNavigateToAppLink:refererAppLink type:type];
}
}
Expand Down

0 comments on commit 513935f

Please sign in to comment.