Andrew
Andrew

Reputation: 16051

Check for internet connection, and connection type?

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

Answers (1)

shannoga
shannoga

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

Related Questions