0
我無法收到通知這一點:不能接收connectionDidFinishLoading :, NSURLConnection的委託方法內張貼後通知
一類做NSURLConnection的異步東西
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:_receivedData, @"receivedData", nil];
[[NSNotificationCenter defaultCenter] postNotificationName:kWebServiceURLTemperaturaMaximaKMLNotitificationName object:self userInfo:userInfo];
}
另一個類觀察通知:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceivedCompleteData:) name:kWebServiceURLTemperaturaMaximaKMLNotitificationName object:self];
有什麼想法?
謝謝,這是我的一部分愚蠢。 – Lucien