SCNetworkReachabilityGetFlags returns 0 even when wireless available

后端 未结 4 1667
花落未央
花落未央 2020-12-17 03:21

I have an app that uses Apples reachability code. When I tab out of the app, turn on airplane mode, go back into the app, I correctly get a message that says no connection i

4条回答
  •  感情败类
    2020-12-17 03:41

    I had the same problem but it was only happening when i was testing in the simulator. I spent 2 days going crazy and then I tested on the device and it worked as a charm! No idea why...

提交回复
热议问题