Skip to content

mconintet/MOINetworkState

Repository files navigation

About

Observe network state in Object-C for iOS.

Usage

- (void)viewDidLoad
{
    [super viewDidLoad];

    _label.text = MOINetworkStateText([MOINetworkState currentState]);

    _state = [[MOINetworkState alloc] initWithDidChangeHandler:^(MOINetworkStateCode code) {
        _label.text = MOINetworkStateText(code);
    }];
}

Screenshot

Installation

// in your pod file
pod 'MOINetworkState', :git => 'https://github.com/mconintet/MOINetworkState.git'
// command line
pod install

About

Observe network state in Object-C for iOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published