Latest 0.0.1
Homepage https://github.com/lisundy/XUserDefaults
License MIT
Platforms ios 8.0, requires ARC
Authors

对iOS NSUserDefaults的封装,主要使用runtime转化成对象,便于管理key
数据存储还是使用NSUserDefaults,只不过简化了key的管理。

//使用示例
1、安装
source ‘https://github.com/CocoaPods/Specs.git
source ‘https://github.com/lisundy/XUserDefaultsTool.git

platform :ios, ‘8.0’

target ‘LXBUserDefaultsDemo’ do

pod ‘XUserDefaultsTool’

end

pod install

2、代码示例

TestUserDefaults *userDefault = [TestUserDefaults sharedInstance];
userDefault.name = @"testname";

Latest podspec

{
    "name": "XUserDefaults",
    "version": "0.0.1",
    "summary": "Easy to use NSUserDefaults",
    "homepage": "https://github.com/lisundy/XUserDefaults",
    "license": "MIT",
    "authors": {
        "Lee": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/lisundy/XUserDefaults.git",
        "tag": "0.0.1"
    },
    "requires_arc": true,
    "source_files": "XBUserDefaults/**/*.{h,m}"
}

Pin It on Pinterest

Share This