Reputation: 16051
I wish to check:
A - Whether there's an internet connection. B - If there is, whether it's over wifi or not.
How can I do this?
Upvotes: 1
Views: 275
Reputation: 19869
Look at this example from apple Reachability.
You can then copt Reachability.h
and Reachability.m
to your project and use it inside your project.
You can use Reachability version from Tony Million that fits for ARC and GDC projects.
Upvotes: 6