From d0824bfdf82fea9ac955a71faaa777c2da7aa94a Mon Sep 17 00:00:00 2001 From: Dinesh Harjani Date: Wed, 27 Jun 2018 13:20:21 +0100 Subject: [PATCH] Fix: FCTwitterAuthorization's +isTwitterInstalled selector was previously not being used Another possible fix is to entirely remove this static selector, but the author believes Marco and other FCUtilities users might be making use of it, so this was the preferred option. --- FCUtilities/FCTwitterAuthorization.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FCUtilities/FCTwitterAuthorization.m b/FCUtilities/FCTwitterAuthorization.m index afe63cb..773dc76 100644 --- a/FCUtilities/FCTwitterAuthorization.m +++ b/FCUtilities/FCTwitterAuthorization.m @@ -87,7 +87,7 @@ - (void)authorize self.consumerKey, self.consumerSecret, self.callbackURLScheme ]]; - if ([UIApplication.sharedApplication canOpenURL:appAuthURL]) { + if ([FCTwitterAuthorization isTwitterAppInstalled]) { [UIApplication.sharedApplication openURL:appAuthURL options:@{} completionHandler:^(BOOL success) { if (! success) [self finishWithCredentials:nil]; }];