View controller that takes over screen when there is no internet connection. Critical for networked apps.
##CocoaPods
pod 'NoNetworkViewController'
- Import header file (if not using cocoapods or using swift)
#import "NoNetworkManager.h"
- Start manager from didFinishLaunchingWithOptions in your AppDelegate file
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Enable takeover View Controller
// Will show whenever the network goes out, and dissappear when network comes back in
[NoNetworkManager enableLackOfNetworkTakeover];
return YES;
}
- Feel free to apply your own design by modifying the NoNetworkViewController.xib file