Updated Branches: refs/heads/master 9e5f8c59f -> dadd019a5
[CB-4691] Fix Xcode 5 warnings Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/dadd019a Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/dadd019a Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/dadd019a Branch: refs/heads/master Commit: dadd019a5a9a0a85c94bfa02c0faea1ecf42b2e4 Parents: 9e5f8c5 Author: Shazron Abdullah <[email protected]> Authored: Fri Aug 30 17:03:56 2013 +0800 Committer: Shazron Abdullah <[email protected]> Committed: Fri Aug 30 17:03:56 2013 +0800 ---------------------------------------------------------------------- CordovaLib/Classes/CDVViewController.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/dadd019a/CordovaLib/Classes/CDVViewController.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVViewController.m b/CordovaLib/Classes/CDVViewController.m index 30f9b96..de1dc5a 100644 --- a/CordovaLib/Classes/CDVViewController.m +++ b/CordovaLib/Classes/CDVViewController.m @@ -654,8 +654,9 @@ */ for (NSString *pluginName in pluginObjects) { CDVPlugin *plugin = [pluginObjects objectForKey:pluginName]; - if ([plugin respondsToSelector:@selector(shouldOverrideLoadWithRequest:navigationType:)]) { - if ((BOOL)objc_msgSend(plugin, @selector(shouldOverrideLoadWithRequest:navigationType:), request, navigationType) == YES) { + SEL selector = NSSelectorFromString(@"shouldOverrideLoadWithRequest:navigationType:"); + if ([plugin respondsToSelector:selector]) { + if ((BOOL)objc_msgSend(plugin, selector, request, navigationType) == YES) { return NO; } }
