-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_
  • 529
  • 6
  • 19

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,195
  • 3
  • 43
  • 35