mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
use instancesRespondsToSelector
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user