Latest 0.2.5
Homepage https://github.com/liguoliangiOS/ZZBaseKit
License MIT Copyright © 2019 ZZBaseKit
All rights reserved.
Platforms ios 8.0

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

导入项目中

`pod  ZZBaseKit` 导入整个库

也可导入部分到库,里面的每个文件夹都可单独导入,如:

`pod ZZBaseKit/Defines` 导入库里面的Defines常用的方法定义
`pod ZZBaseKit/CryptManager` 导入库里面的CryptManager加解密
`pod ZZBaseKit/KeyChain` 导入库里面的KeyChain钥匙串存储
`pod ZZBaseKit/DeviceInfo` 导入库里面的DeviceInfo设备信息
`pod ZZBaseKit/Extensions` 导入库里面的Extensions常用类的Extension
`......`

Version new features

v0.1.3

ZZAlertSystemView 封装了系统弹窗

``` 
例如:显示一个弹窗
ZZAlertSystemView.zz_alertSystem(nil, "这是一个提示")
```

ZZCurrentVC 封装了获取当前控制器的方法

``` 
例如: 获取当前控制器
zz_currentVC()
zz_currentVCFromeView(view)

```

v 0.1.4

ZZDeviceInfo 获取设备信息

``` 
例如:获取运营商名称   
ZZDeviceInfo.zz_getDeviceSupplier() 

```

ZZAttributedStr 设置字符串的样式

```
例如:设置字符串的行高   
ZZAttributedStr.zz_setLineHeight("这是一个测试数据", 8, .center)

```

v 0.1.6

增加 ZZWKWebVC 、ZZShowError

```
let webVc = ZZWKWebController()

webVc.url = "https://www.baidu.com"
webVc.loadType = .rules 

///.interaction 需要实现下面的方法

webVc.zz_wkWebLoadCompletionHandler(block: {
    (count, url) in
    print("(count) --- ( url)")
    })
webVc.zz_wkWebSetParams(phone: "13233258888", aesPhone: "X/A+jXMnFGS81LZjC7XTmw==",userLoginId: "12233", umDeviceToken: "sdcdfvfgbvghfbdsvdfgdrbvsdfvtgbdfgbvfg")

self.navigationController?.pushViewController(webVc, animated: true)

```

v 0.1.7

1.增加 KeyChain 保存数据到钥匙串

  1. 修复webView链接的处理
  2. 适配系数修改

    //使用介绍
    ///保存
    let result =  ZZKeyChain.zz_keyChainSaveDta(account: "Passer", password: "Montanus", data: ["idfa": ZZ_APP_IDFA])
    ///获取
    let searchData = ZZKeyChain.zz_keyChainReadData(account: "Passer", password: "Montanus")
    ///修改
    ZZKeyChain.zz_keyChainUpdateData(account: "Passer", password: "Montanus", data: searnewDic)
    ///删除
    ZZKeyChain.zz_keychainDelete(account: "Passer", password: "Montanus")
    

    v 0.1.8 增加加密库 CryptManager ,修复webView的部分bug

    //使用方法
    AES 加解密
    ZZCryptManager.zz_aesEncrypt(_ text: String, _ key:[UInt8], _ iv:[UInt8])
    ZZCryptManager.zz_aesEncryptStr(_ text: String, _ key:String, _ iv:String)
    zz_aesDecrypt(_ aesText: String, _ key:[UInt8], _ iv:[UInt8])
    zz_aesDecryptStr(_ aesText: String, _ key:String, _ iv:String)
    MD5加密
    zz_md5Encrypt(_ text: String )
    RSA加解密
    ZZCryptManager.zz_rsaEncrypt(_ text: String, _ publicKey: String)
    ZZCryptManager.zz_rsaDecrypt(_ encryptData: String, _ privateKey: String)
    ZZCryptManager.zz_rsaDecryptPublic(_ encryptData: String, _ publicKey: String)
    加签
    ZZCryptManager.zz_rsaSignWithSHA1(_ text: String, _ privateKey: String) 
    RSA验签
    ZZCryptManager.zz_rsaSignVerifyWithSHA1(_ originalStr: String, _ siginStr: String, _ publicKey: String)

Installation

ZZBaseKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ZZBaseKit'

Author

liguoliang

License

ZZBaseKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZZBaseKit",
    "version": "0.2.5",
    "summary": "u65b9u4fbfu4f7fu7528u7684u57fau7840u5e93",
    "description": "u628au5e38u7528u7684u65b9u6cd5u505au4e86u4e00u4e2au6574u5408uff0cu5f62u6210u4e00u4e2au65b9u4fbfu4f7fu7528u7684u57fau7840u5e93",
    "homepage": "https://github.com/liguoliangiOS/ZZBaseKit",
    "license": {
        "type": "MIT",
        "text": "                          Copyright u00a9 2019 ZZBaseKitn                          All rights reserved.n"
    },
    "authors": "liguoliang",
    "source": {
        "git": "https://github.com/liguoliangiOS/ZZBaseKit.git",
        "tag": "0.2.5"
    },
    "swift_versions": "5.0",
    "platforms": {
        "ios": "8.0"
    },
    "subspecs": [
        {
            "name": "Defines",
            "source_files": "ZZBaseKit/BaseKit/Defines"
        },
        {
            "name": "Extensions",
            "source_files": "ZZBaseKit/BaseKit/Extensions"
        },
        {
            "name": "Tools",
            "source_files": "ZZBaseKit/BaseKit/Tools"
        },
        {
            "name": "DeviceInfo",
            "source_files": "ZZBaseKit/BaseKit/DeviceInfo"
        },
        {
            "name": "KeyChain",
            "source_files": "ZZBaseKit/BaseKit/KeyChain"
        },
        {
            "name": "CryptManager",
            "source_files": "ZZBaseKit/BaseKit/CryptManager"
        },
        {
            "name": "Component",
            "dependencies": {
                "ZZBaseKit/Defines": [],
                "ZZBaseKit/Extensions": [],
                "ZZBaseKit/Tools": [],
                "ZZBaseKit/DeviceInfo": [],
                "ZZBaseKit/KeyChain": []
            },
            "source_files": "ZZBaseKit/BaseKit/Component"
        }
    ],
    "swift_version": "5.0"
}

Pin It on Pinterest

Share This