Latest 1.1.1
Homepage https://github.com/baishiyun/HActiveManger-master
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation
Authors

HActiveManger 是对NSUserDefaults在此封装,支持新增/添加/更新/删除/指定删除/指定更新

//
// HActiveManger.h
// HActiveManger
//
// Created by 白仕云 on 2018/10/25.
// Copyright © 2018年 BSY.com. All rights reserved.
//

import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HActiveManger : NSObject

/**

存储
@param parameter 存储的数据
@param key key值
@param Complete 存储完成状态(True,Flase)

*/

+(void)saveParameter:(id)parameter Key:(NSString )key Complete:(void(^)(BOOL complete ,NSMutableArray CompleteArray))Complete;

/**

新增数据存储
@param parameter 存储的数据
@param key key值
@param Complete 存储完成状态(True,Flase)

*/

+(void)addSaveParameter:(id)parameter Key:(NSString )key Complete:(void(^)(BOOL complete,NSMutableArray CompleteArray))Complete;

/**

更新存储
@param majorValue 更新的值 ,对应主键majorkey的Value
@param key key值
@param majorkey majorkey值(这是需要更新对象的主键)
@param Complete 存储完成状态(True,Flase)

*/

+(void)updateMajorValue:(id)majorValue Key:(NSString )key majorkey:(NSString )majorkey Complete:(void(^)(BOOL complete,NSMutableArray *CompleteArray))Complete;

/**

删除其中每一条存储(这是针对存储的字典中的数据都是一样的的时候可以使用,如果出现存储的字典中key相同,值不相同的不能使用这个方法,需要使用下一个方法)
@param parameter 存储的数据
@param key key值
@param Complete 删除完成状态(True,Flase)

*/

+(void)deletedOnlyOneParameter:(id)parameter Key:(NSString )key Complete:(void(^)(BOOL complete,NSMutableArray CompleteArray))Complete;

/**

根据存储的字段中的每一个key值去删除
@param majorkey 删除的主键(删除的依据)
@param key key值
@param Complete 删除完成状态(True,Flase)

*/

+(void)deletedMajorkey:(NSString )majorkey Key:(NSString )key Complete:(void(^)(BOOL complete,NSMutableArray *CompleteArray))Complete;

/**

根据存储的字段中的每一个key和majorValue 值去删除
@param majorkey 删除的主键(删除的依据)
@param key key值
@param Complete 删除完成状态(True,Flase)

*/

+(void)deletedMajorkey:(NSString )majorkey MajorValue:(id)majorValue Key:(NSString )key Complete:(void(^)(BOOL complete,NSMutableArray *CompleteArray))Complete;

/**

全部删除
@param key key值
@param Complete 删除完成状态(True,Flase)

*/

+(void)deletedAllKey:(NSString )key Complete:(void(^)(BOOL complete,NSMutableArray CompleteArray))Complete;

@end

NS_ASSUME_NONNULL_END

Latest podspec

{
    "name": "HActiveManger",
    "version": "1.1.1",
    "license": "MIT",
    "summary": "HActiveu7cfbu5217u4e3bu8981u662fu5bf9u82f9u679cu63d0u4f9bu7684u4e00u4e9bAPIu8fdbu884cu5c01u88c5uff0cu63d0u9ad8u5de5u4f5cu6548u7387u7684u5de5u5177u7c7buff0cu5176u4e2d HActiveMangeru662fu5bf9NSUserDefaultsu518du6b21u5c01u88c5uff0cHActiveCollectionViewu548cHActiveTableViewu4e3bu8981u662fu5bf9UICollectionViewu548cUITableViewu7684u5c01u88c5,1.1.1u7248u672cu4e3bu8981u662fHActiveMangeru65b0u589eu83b7u53d6u5168u90e8u6570u636eu65b9u6cd5uff0cu5e76u4feeu590du5b58u50a8u53d1u751fu5d29u6e83u7684u95eeu9898",
    "homepage": "https://github.com/baishiyun/HActiveManger-master",
    "source": {
        "git": "https://github.com/baishiyun/HActiveManger-master.git",
        "tag": "1.1.1"
    },
    "source_files": "HActiveManger/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "authors": {
        "u767du4ed5u4e91": "[email protected]"
    },
    "social_media_url": "https://github.com/baishiyun"
}

Pin It on Pinterest

Share This