0

My iPhone is connected to cellular network and my own WiFi. If I go to the basement I'm still connected to wifi, by cellular connection goes down. How can I know that the cellular connection is active or not?

Pavel P
  • 15,789
  • 11
  • 79
  • 128

1 Answers1

1

You need "Reachability". Apple have provided it since the early days of the SDK, there is a link to a version by Tony Miller in this answer and it is also part of the highly recommended AFNetworking (another relevant answer). It will tell you whether you have any connection and what kind it is.

Community
  • 1
  • 1
Adam Eberbach
  • 12,309
  • 6
  • 62
  • 114