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.
Asked
Active
Viewed 379 times
1
-
Raechability Class use to check Network Available or not – Kirit Modi Mar 14 '14 at 04:55
-
You can use AFNetworking Which is directly check Network is available or not also give alert message – Kirit Modi Mar 14 '14 at 04:57
-
@KiritModi but if I have method test() which uploads data when internet is on but just it starts upload net is disconnected to how to tackel tha t – user3110080 Mar 14 '14 at 05:00
-
in AFNetworking its default show when disconnect internet. you have not implement code . code is default in AFNetworking. – Kirit Modi Mar 14 '14 at 05:05