Latest 1.0.1
Homepage https://github.com/zhooleen/KeyPath
License MIT
Platforms ios 7.0
Authors

NSString+KeyPath

Key path string generator in iOS

Example:

@"sometimes.you.want.query.value.from.dictionary"

@interface KPMaker (QueryKeyPath)

@property (readonly) KPMaker *sometimes;

-(KPMaker*) you;

-(KPMaker*) want;

-(KPMaker*) dictionary;

@end

NSString *keyPath = KeyPath(sometimes.you.want.query.value.from.dictionary);

Advantage

  1. The compiler checks the spelling error
  2. Xcode suggests completions while typeing
  3. Just declare the category, not neccessarily implement it.

NSMutableString+KeyPath

Support all properties of any Class

Example

  • KP.(view).(backgroundColor) —-> @"view.backgroundColor"
  • KP.(name).(backgroundColor)._(view) —-> @"name.backgroundColor.view"

Latest podspec

{
    "name": "KeyPath",
    "version": "1.0.1",
    "summary": "Key path string generator in iOS",
    "description": "An iOS utility to generate key path string easily with short code",
    "homepage": "https://github.com/zhooleen/KeyPath",
    "license": "MIT",
    "authors": {
        "lzhu": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/zhooleen/KeyPath.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This