From 855e3aaf3ca44ff56b566512c9610b4f2db6400c Mon Sep 17 00:00:00 2001 From: Tushar Vengurlekar Date: Wed, 20 Jul 2016 16:51:43 +0530 Subject: [PATCH] Fixed Warning Selector is missing --- src/ios/BranchSDK.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ios/BranchSDK.m b/src/ios/BranchSDK.m index 177058ad..076b484f 100644 --- a/src/ios/BranchSDK.m +++ b/src/ios/BranchSDK.m @@ -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;