문제

I'd like to know if what would be the best way to ALWAYS check if the app is connected to the network?

Say, have it scheduled to check every 10seconds.

Any help would be much appreciated.

도움이 되었습니까?

해결책

You can use SystemConfiguration framework to monitor the network state. Take a look at Reachability example. Check the connection before initiating an operation that requires a working internet connection.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top