1

I am making an app in which i upload data to server from the iphone app I want that if user uploads data while internet is connected and suddenly internet is disconnected then it should show alert rather than crashing the app. For to check network at starch we can use Reachbility class but what if it disconnects during process.

user3110080
  • 57
  • 1
  • 8

2 Answers2

1

Make use of the Reachability class. You can download it from here.

Check on how to implement it here.

Community
  • 1
  • 1
ZeMoon
  • 20,054
  • 5
  • 57
  • 98
0

Use great libraries like AFNetwork or ASIHttp. This libraries provide support for handling internet connection failure in most recommended way.

skJosh
  • 631
  • 1
  • 8
  • 16