From b93e97331ab5fc6e246c6fe39876cab289d5f071 Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Fri, 6 May 2016 18:06:59 -0700 Subject: [PATCH] use instancesRespondsToSelector --- ios/CodePush/CodePushDownloadHandler.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/CodePush/CodePushDownloadHandler.m b/ios/CodePush/CodePushDownloadHandler.m index ed8d0dd..e352116 100644 --- a/ios/CodePush/CodePushDownloadHandler.m +++ b/ios/CodePush/CodePushDownloadHandler.m @@ -27,7 +27,7 @@ failCallback:(void (^)(NSError *err))failCallback { NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO]; - if ([NSOperationQueue respondsToSelector:@selector(setUnderlyingQueue:)]) { + if ([NSOperationQueue instancesRespondToSelector:@selector(setUnderlyingQueue:)]) { NSOperationQueue *delegateQueue = [NSOperationQueue new]; delegateQueue.underlyingQueue = self.operationQueue; [connection setDelegateQueue:delegateQueue];