Skip to content

Commit

Permalink
Fixed Warning Selector is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar-bidchat authored Jul 20, 2016
1 parent 48958fe commit 855e3aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ios/BranchSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,10 @@ - (void)postUnhandledURL:(NSNotification *)notification {
// We create a JSON string result, because we're unable to handle the url. We will include the url in the return string.
NSError *error;
NSString *urlString;

if ([notification.object respondsToSelector:@selector(absoluteString:)]) {

// if ([notification.object respondsToSelector:@selector(absoluteString:)]) {
SEL selector = NSSelectorFromString(@"absoluteString:");
if ([notification.object respondsToSelector:selector]) {
urlString = [notification.object absoluteString];
} else {
urlString = notification.object;
Expand Down

0 comments on commit 855e3aa

Please sign in to comment.