NSURLProtocol を見て、いくつかのヘッダーを挿入しようとしています。
- (void)startLoading {
NSMutableURLRequest *newRequest = [self.request mutableCopy];
[NSURLProtocol setProperty:@YES forKey:kAccessCodeProtocolKey inRequest:newRequest];
self.connection = [NSURLConnection connectionWithRequest:self.request delegate:self];
}
しかし、私の startLoading は決して呼び出されません