摘要:
9.1 数据持久化概述iOS中可以有四种持久化数据的方式: 属性列表、对象归档、SQLite3和Core Data9.2 iOS应用程序目录结构iOS应用程序运行在Mac os模拟器时候,有一下临时目录模拟器3.1.3为例子:/Users/tony/Library/Application Support/iPhone Simulator/3.1.3/ApplicationsIOS应用程序采用沙盒原理设计,ios每个应用程序都有自己的3个目录(Document,Library,tmp),互相之间不能访问。Documents存放应用程序的数据。Library目录下面还有Preferences和Ca 阅读全文
posted @ 2014-02-17 23:41
yulang
阅读(302)
评论(0)
推荐(0)
摘要:
Objective-C中判断字符串是否包含其他字符串-(BOOL) hasPrefix:(NSString *) astring;检查字符串是否以astring开头;-(BOOL) hasSuffix:(NSString *) astring;检查字符串是否以astring结尾;使用方式:NSString*filename=@"hello,world";if([filename hasPrefix:@"hello"]){...}if([filename hasSuffix:@"world"]){...}如果想知道字符串内的某处是否包含 阅读全文
posted @ 2014-02-17 22:42
yulang
阅读(1376)
评论(0)
推荐(0)
摘要:
wu 阅读全文
posted @ 2014-02-17 17:14
yulang
阅读(120)
评论(0)
推荐(0)
浙公网安备 33010602011771号