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

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

    There also could be problems, if are trying to start NSURLConnection from another Thread. Please call method [connection start] on main thread, if you have not customized Run Loop for it.

提交回复
热议问题