2 Star 1 Fork 0

baishiyun / HActiveManger-master

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

HActiveManger

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

MIT License Copyright (c) 2018 白仕云 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

第三方数据存储工具类HActiveManger,使用简单有效,现在已经支持CocoaPods管理,如果对你有所帮助,请Star和Fork。项目地址:https://github.com/baishiyun/HActiveManger-master 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/baishiyun/HActiveManger-master.git
git@gitee.com:baishiyun/HActiveManger-master.git
baishiyun
HActiveManger-master
HActiveManger-master
master

搜索帮助