Skip to content

williamFalcon/NoNetworkViewController

Repository files navigation

NoNetworkViewController

View controller that takes over screen when there is no internet connection. Critical for networked apps.

Example

##CocoaPods

pod 'NoNetworkViewController'

How to Use

  1. Import header file (if not using cocoapods or using swift)
#import "NoNetworkManager.h"
  1. 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;
}

Designing for your project

  1. Feel free to apply your own design by modifying the NoNetworkViewController.xib file

Dependencies

About

View controller that takes over screen when there is no internet connection. Critical for networked apps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published