AFNetworking and No Internet Connection scenario

后端 未结 5 1535
误落风尘
误落风尘 2020-12-07 17:21

I use AFNetworking in my app for every request (like login, get data from url, etc).

Take this for example: an user click on the login button and there\

5条回答
  •  广开言路
    2020-12-07 17:25

    How about using Reachability?

    You can check whether you have a plausible reason for trying a connection before you do it.

    Looks like the Apple Sample Project for Reachability shows how to get an initial status.

提交回复
热议问题