https://github.com/williamfalcon/nonetworkviewcontroller
View controller that takes over screen when there is no internet connection. Critical for networked apps.
https://github.com/williamfalcon/nonetworkviewcontroller
Last synced: 11 months ago
JSON representation
View controller that takes over screen when there is no internet connection. Critical for networked apps.
- Host: GitHub
- URL: https://github.com/williamfalcon/nonetworkviewcontroller
- Owner: williamFalcon
- License: mit
- Created: 2015-01-16T14:25:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-19T02:58:29.000Z (over 11 years ago)
- Last Synced: 2025-06-25T11:20:55.504Z (12 months ago)
- Language: Objective-C
- Size: 2 MB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NoNetworkViewController
View controller that takes over screen when there is no internet connection. Critical for networked apps.

##CocoaPods
```
pod 'NoNetworkViewController'
```
## How to Use
1. Import header file (if not using cocoapods or using swift)
```obj-c
#import "NoNetworkManager.h"
```
2. Start manager from didFinishLaunchingWithOptions in your AppDelegate file
```obj-c
- (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](https://github.com/williamFalcon/NoNetworkViewController/blob/master/NoNetworkViewController/NoNetworkViewController.xib)
## Dependencies
* [Reachability](https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html)