Latest1.2.2
Homepagehttps://github.com/swp-song/SwpKeyChain
LicenseMIT
Platformsios 8.0, requires ARC
FrameworksFoundation, UIKit
Authors

Xcode
iOS
CI Status
Version
License
Platform
SwpKeyChainAPI


KeyChain

  • iOS 提供的 KeyChain 中,并且删除应用后,数据不会删除。

  • 下载安装还能使用。iOS系统提供了一些方法,进行一些简单的封装之后,就可以很方便的使用。

导入

  • 手动导入:
  • SwpKeyChain 文件夹导入项目中。

  • #import "SwpKeyChain.h

CocoaPods 导入:

  • pod search SwpKeyChain
  • pod ‘SwpKeyChain’
  • #import <SwpKeyChain/SwpKeyChain.h>


代码示例

//  存入数据
SwpKeyChainSetObject(value,key);
SwpKeyChain.swpKeyChainSetObject(value, key);
[SwpKeyChain swpKeyChainSetObject:value key:key];

//  读取数据
SwpKeyChainGetObject(key);
[SwpKeyChain swpKeyChainGetObject:key];

//  删除数据
SwpKeyChainDeleteObject(key);
SwpKeyChain.swpKeyChainDeleteObject(key);
[SwpKeyChain swpKeyChainDeleteObject:key];

SwpKeyChain 文档


版本记录

  • 版本版本:1.2.2

  • 更新时间:2018-05-18 14:20:24

  • 更新内容:
  • 修复 pod 文件。

  • 版本版本:1.2.1

  • 更新时间:2018-05-18 14:13:02

  • 更新内容:
  • 更新 .md 文件


备注

  • 持续更新, 如果喜欢, 欢迎 Star

声明

  • 著作权归 ©swp_song,如需转载请标明出处

Latest podspec

{
    "name": "SwpKeyChain",
    "version": "1.2.2",
    "summary": "KeyChain u5b58u50a8u5de5u5177",
    "description": "TODO: KeyChain u5b58u50a8u5de5u5177",
    "homepage": "https://github.com/swp-song/SwpKeyChain",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "swp-song": "[email protected]"
    },
    "source": {
        "git": "https://github.com/swp-song/SwpKeyChain.git",
        "tag": "1.2.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "SwpKeyChain",
        "SwpKeyChain/Classes/**/*.{h,m}"
    ],
    "public_header_files": "SwpKeyChain/Classes/**/*.h",
    "resources": "SwpKeyChain/Resources/SwpKeyChain.bundle",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This