Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.14 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.14 KB

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