-3

I need a function to run (a UIAlertView) whenever there is a network connection error. I would like to do this as simply as possible. Thanks in advance!

gm_
  • 598
  • 6
  • 22

1 Answers1

0

Take a look at this link Reachability from Apple developer website. Listen network changes and when it is notReachable show your alert view.

abdullahselek
  • 7,893
  • 3
  • 50
  • 40