本地数据读写
光速之年
Talk is cheap. Show me the code
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UIimage存入本地并读取
#import "QFViewController.h"@interface QFViewController ()@end@implementation QFViewController@synthesize imageView;@synthesize image;@synthesize dic;- (void)viewDidLoad{转载 2015-11-24 18:26:33 · 782 阅读 · 0 评论 -
用户首选项NSUserDefaults
用户首选项是用来保存和记录用户在操作应用的过程做做出的一些选择或设置。类似Android开发中的SharedPreference,可以存储一些数据,但基本都是简单类型的数据,主要作用都是存储一些用户设置数据,比如是否是首次登陆,就可以设置一个布尔类型的变量,设值为true或false。NSUserDefaults的几个重要方法:standardUserDefaults:转载 2015-05-19 09:42:03 · 568 阅读 · 0 评论 -
Objective-c NSFileManager
-(BOOL)contentsAtPath:path //从一个path所指定的文件上读取数据 -(BOOL)createFileAtPath:path contents:(NSData*)data attributes:attr //向一个path所指向的文件上写入数据data -(BOOL)removeF转载 2015-05-07 09:58:16 · 383 阅读 · 0 评论 -
iOS缓存-内存缓存
为了减少与服务器的连接沟通次数,提高应用程序的执行速度,使用了iOS的缓存机制#import "YoungViewController.h"@interface YoungViewController ()NSURLConnectionDelegate>{ NSURLConnection * connection;}@转载 2015-05-03 13:26:48 · 382 阅读 · 0 评论
分享