“-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data” not called

后端 未结 4 1389
清歌不尽
清歌不尽 2021-01-07 01:32

Have a look to this code snippet:-

-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{               
    [webData         


        
4条回答
  •  星月不相逢
    2021-01-07 01:53

    You don't happen to be calling the NSConnection in a thread do you? If you are then what's happening is that the thread is terminating before NSConnection and its delegates have finished so it'll just bomb out without an error.

    A workaround for this is in this thread

提交回复
热议问题