The connection to service named com.apple.nsurlstorage-cache was invalidated
问题 I'm creating a custom keyboard for iOS8, and I'm having a tough time figuring out some issues with NSURLConnection. I'm using the sendAsynchronousRequest: method like this: [NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) { NSLog(@"recieved asynchronous response"); if (!connectionError) { [self connection:nil didReceiveData:data]; [self connectionDidFinishLoading:nil]; }