Latest 0.1.0
Homepage https://github.com/rahul-apple/NetworkManager-ObjC
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

A class Designed for Check Internet connection.Written for iOS, Objective-C, Cocoa Touch, iPhone, iPad.
Usage:
Add This In Your Podfile

pod "NetworkManager-ObjC"

update pod

pod update

Add to Your ViewController

1.)DELGATE – METHODS

#import<NetworkManager.h>

@interface kViewController : UIViewController<NetworkManagerDelegate>{

}

NetworkManager *manager;
manager =[NetworkManager startManager];
manager.delegate=self;

Implement These Methods:

-(void)netWorkConnectionDropped:(kNetworkStatus)netStatus{
    //Method Gets Called When Internet connection Gets Dropped.!
}
-(void)netWorkConnectionConnected:(kNetworkStatus)netStatus{
    //Method Gets Called When Internet Connected Back.!
}

2.)NOTIFICATION REGISTER – METHODS

#import<NetworkManager.h>

@interface kViewController : UIViewController{

}

-(void)viewWillAppear:(BOOL)animated{

//.......
NetworkManager *manager;
manager =[NetworkManager startManager];
manager.typeSelected =NOTIFICATION_REGISTER;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkDisConnected:) name:@"NetworkDisConnected" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkConnected:) name:@"NetworkConnected" object:nil];

//.......

}

-(void)networkDisConnected:(NSNotification *)notification{
    //Method Gets Called When Internet connection Gets Dropped.!
}
-(void)networkConnected:(NSNotification *)notification{
    //Method Gets Called When Internet Connected Back.!
}

refer the example for More Details


Installation

NetworkManager-ObjC is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NetworkManager-ObjC"

Author

rahul-apple, [email protected]

License

NetworkManager-ObjC is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NetworkManager-ObjC",
    "version": "0.1.0",
    "summary": "A class Designed for Check Internet connection.Written for IOS - Objective-C code .",
    "description": "nA class Designed for Check Internet connection.Written for iOS, Objective-C, Cocoa Touch, iPhone, iPad.n                       Usage:n                        NetworkManager *manager;n                        manager =[NetworkManager startManager];n                        manager.delegate=self;nn                        *dont  forget   add  nn                        refer the example for More Detailsnnn                       * Markdown format.n                       * Don't worry about the indent, we strip it!n",
    "homepage": "https://github.com/rahul-apple/NetworkManager-ObjC",
    "license": "MIT",
    "authors": {
        "rahul-apple": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rahul-apple/NetworkManager-ObjC.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "NetworkManager-ObjC": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This