摘要: UItextField通常用于外部数据输入,以实现人机交互。下面以一个简单的登陆界面来讲解UItextField的详细使用。//用来显示“用户名”的labelUILabel* label1 = [[UILabelalloc] initWithFrame:CGRectMake(15, 65, 70, 30)]; label1.backgroundColor = [UIColorclearColor]; label1.font = [UIFontfontWithName:@"Helvetica-Bold"size:18]; label1.text = @"用户名&qu 阅读全文
posted @ 2014-02-17 23:49 yulang 阅读(202) 评论(0) 推荐(0)
摘要: 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 阅读(1377) 评论(0) 推荐(0)
摘要: wu 阅读全文
posted @ 2014-02-17 17:14 yulang 阅读(120) 评论(0) 推荐(0)