RNCachingURLProtocol icon indicating copy to clipboard operation
RNCachingURLProtocol copied to clipboard

RNCachingURLProtocol.m:115:52: 'connectionWithRequest:delegate:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h)

Open dzungductran opened this issue 8 years ago • 0 comments

There is an issue compiling this code where Xcode complaint about issue we NSURLConnect ion is deprecated.

[connectionRequest setValue:@"" forHTTPHeaderField:RNCachingURLHeader];
NSURLConnection *connection = [NSURLConnection connectionWithRequest:connectionRequest
                                                            delegate:self];
[self setConnection:connection];

dzungductran avatar Mar 10 '17 22:03 dzungductran