摘要:
FMDBManager.h#import #import "FMDatabase.h"@interface FMDBManager : NSObject{ NSString *dataBasePath; FMDatabase * fmdbDataBase;//数据库对象 BOOL isFMDBopen;}+ (FMDBManager *)sharedFMDB;// 创建表-(void)createTable;// 插入记录-(void)insertTable;// 获取所有记录-(NSMutableArray *)getList;//删除某人所有信息-(BOOL)delet 阅读全文
摘要:
NSMutableString *urlStr = [NSMutableString stringWithFormat:@"%@?",request.URL]; for (int i=0;i<[parameters count];++i) { (i==0)?:[urlStr appendString:@"&"]; NSString *key = [[parameters allKeys] objectAtIndex:i]; NSString *value = [[parameters allValues] objectAtInde... 阅读全文
摘要:
NetWorkAPIClient.h#import #import "AFHTTPRequestOperationManager.h"#define POST_PATH @"/campus/dispatch.rpc"#define BASE_URL @"http://192.168.0.102:8080/idc/mobile/"//测试环境@interface NetWorkAPIClient : AFHTTPRequestOperationManager+ (NetWorkAPIClient *)sharedClient;@endN 阅读全文