Latest 1.0.0
Homepage https://github.com/Mars182838/WJModel
License MIT
Platforms ios 6.0, requires ARC
Authors

Version
License
Platform
Platform

We need to observe the Model for iOS. That’s what WJModel do.

Quick Start With Cocoapods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like RealReachability in your projects. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate RealReachability into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '6.0'

pod 'WJModel', '~> 1.0.0'

Then, run the following command:

$ pod install

Manual Start

If you’d rather do everything by hand, just add the folder "WJModel" to your project, then all of the files will be added to your project.

Dependencies

  • Xcode 5.0+ for ARC support, automatic synthesis and compatibility
    libraries. iOS 6.0+.
  • The SystemConfiguration Framework should be added to your project.

Usage

Start to WJModel:

    /*
 "wj_name":"wj"
 "wj_sex":"man"
 "wj_age":"18"
 */
- (NSMutableDictionary *)generateAttributeMapDictionary
{
    NSMutableDictionary* dict = [super generateAttributeMapDictionary];
    NSDictionary* map = @{@"wj_name": @"name",
                          @"wj_sex": @"sex",
                          @"wj_age": @"age"};
    [dict addEntriesFromDictionary:map];
    return dict;
}

Demo

We already put the demo project in the repository.

License

RealReachability is released under the MIT license. See LICENSE for details.

And finally…

Please use and improve! Patches accepted, or create an issue.

I’d love it if you could send me a note as to which app you’re using it with! Thank you!

Latest podspec

{
    "name": "WJModel",
    "version": "1.0.0",
    "summary": "We need to observe the Categories of network for iOS. That's what EBCategories do.",
    "homepage": "https://github.com/Mars182838/WJModel",
    "license": "MIT",
    "authors": {
        "mars182838": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/Mars182838/WJModel.git",
        "tag": "1.0.0"
    },
    "source_files": "WJModel",
    "requires_arc": true
}

Pin It on Pinterest

Share This