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

后端 未结 4 1378
清歌不尽
清歌不尽 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:43

    You're not getting any error messages in didFailWithError either? Kind of a silly suggestion, but are you sure you're setting the proper NSURLConnection delegate?

    NSURLConnection* connection=[[NSURLConnection alloc] initWithRequest:request delegate:self];
    

    Sometimes it's something small like that.

    Another idea is to drop in a toolkit like ASIHTTPRequest and see if it works going through them.

提交回复
热议问题