NSURLConnection delegate methods are not called

后端 未结 4 854
借酒劲吻你
借酒劲吻你 2020-12-04 17:51

I am trying to create a simple NSURLConnection to communicate with a server using a GET request. Connection works well, but delegates methods of NSURLConnection are never ca

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 17:55

    Are you calling this on a background thread? If you are performing this on a background thread, the thread is probably exiting before the delegates can be called.

提交回复
热议问题