plist基本操作

2015-05-12 0 215
plist基本操作
//
//  UserPlistService.h
//  HTest_Plist
//
//  Created by 胡晓阳 on 15/6/25.
//  Copyright (c) 2015年 HXY. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserPlistService : NSObject

+(UserPlistService *)share;

/**
 *  获取所有数据
 *
 *  @param success 成功
 *  @param error   失败
 */
-(void)fetchAllUserPlistSuccess:(void(^)(id successObj))success error:(void(^)(void))error;

/**
 *  添加一条记录
 *
 *  @param name    姓名
 *  @param score   成绩
 *  @param success 成功
 *  @param error   失败
 */
-(void)insertWithName:(NSString *)name score:(NSString *)score scucess:(void(^)(id successObj))success error:(void(^)(void))error;

/**
 *  删除一条记录
 *
 *  @param name    姓名
 *  @param score   成绩
 *  @param success 成功
 *  @param error   失败
 */
-(void)deleteWithName:(NSString *)name score:(NSString *)score success:(void(^)(id successObj))success error:(void(^)(void))error;

/**
 *  更新一条数据
 *
 *  @param name    <#name description#>
 *  @param score   <#score description#>
 *  @param success <#success description#>
 *  @param error   <#error description#>
 */
-(void)updateWithName:(NSString *)name score:(NSString *)score atIndex:(NSInteger)index success:(void(^)(id successObj))success error:(void(^)(void))error;

-(void)sortWithType:(NSInteger)type success:(void(^)(id successObj))success error:(void(^)(void))eror;
@end

遇见资源网 objective-c plist基本操作 http://www.ox520.com/16661.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务