【发布时间】:2014-03-13 18:43:48
【问题描述】:
我正在查看 NSURLProtocol 并尝试插入一些标题。
- (void)startLoading {
NSMutableURLRequest *newRequest = [self.request mutableCopy];
[NSURLProtocol setProperty:@YES forKey:kAccessCodeProtocolKey inRequest:newRequest];
self.connection = [NSURLConnection connectionWithRequest:self.request delegate:self];
}
但我的 startLoading 从未被调用过
【问题讨论】:
-
对不起...我编辑帖子太晚了。
标签: ios nsurlprotocol