NetworkUtility framework notifies network status change.
- Drag NetworkUtility framework to your project and make sure it copies to your app package (Check its added in Build phase-> Link Binaries With Libraries)
#import <NetworkUtility/NetworkUtility.h>
file in your class where you want to be notified for network status.- Implement
NetworkStatusDelegate
protocal - Set the network status delegate as
[[NetworkStatusManager sharedNetworkStatusManager] setDelegate:self];
- Implement network delegate method:
- (void)networkStatusChanged