Mars182838 / WJModel

A good Model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WJModel

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!

About

A good Model.

License:MIT License


Languages

Language:Objective-C 94.2%Language:Ruby 5.8%