Kaynağa Gözat

No longer swizzle dataTaskWithHTTPGetRequest:completionHandler:

This deprecated method has been removed from the NSURLSession header in the iOS 9 SDK, so referencing the selector triggers an undeclared selector warning. We'll follow Apple's lead here and stop supporting the method entirely.
Ryan Olson 11 yıl önce
ebeveyn
işleme
caadcce7f1

+ 0 - 1
Classes/Network/PonyDebugger/FLEXNetworkObserver.m

@@ -465,7 +465,6 @@ didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask delegate:(id <NSU
 
         // The method signatures here are close enough that we can use the same logic to inject into all of them.
         const SEL selectors[] = {
-            @selector(dataTaskWithHTTPGetRequest:completionHandler:),
             @selector(dataTaskWithRequest:completionHandler:),
             @selector(dataTaskWithURL:completionHandler:),
             @selector(downloadTaskWithRequest:completionHandler:),