【iOS 网络请求封装类】教程文章相关的互联网学习教程文章

iOS 网络请求封装类【代码】

此类名为CWSingleSample,只为方便自己修改, 添加方法所记录!   CWSingleSample.h// // CWSingleSample.h // students // // Created by ZKSoft on 14/11/13. // Copyright (c) 2014年 ZK. All rights reserved. //#import <Foundation/Foundation.h> #import "AFHTTPClient.h" #import "MBProgressHUD.h" #import "AFHTTPRequestOperation.h" #import "ASIHTTPRequest.h" //请求成功时的回调block typedef void (^getData...

【ios开发】使用FMDB封装类的sqlite数据库操作

创建,插入,更新和删除:使用executeUpdate方法,而查询则用executeQuery1.实例化FMDatabase//paths: ios下Document路径,Document为ios中可读写的文件夹NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *documentDirectory = [paths objectAtIndex:0];//dbPath: 数据库路径,在Document中。NSString *dbPath = [documentDirectory stringByAppendingPathComponent...