第一部分: 第一部分: Hello World Hello World Hello World Hello WorldHello World Hello World !创建你的第一个 !创建你的第一个 !创建你的第一个 !创建你的第一个 iPhone AppiPhone AppiPhone AppiPhone App iPhone AppiPhone AppiPhone App ...................... 7 看你的第一个应用程序 ................................ ................................ .............................. 8 开始编写代码! ................................ ................................ ................................ ............... 8 熟悉 XcodeXcodeXcodeXcode 工作环境 ................................ ................................ ................................ .... 13 第一次运行你的应用程序 ................................ ................................ ............................ 14 回来写代码吧! ................................ ................................ ................................ ............. 16 编写 Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World 按钮的代码 ................................ ................................ ................... 18 连接 Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World 按钮和 ActionActionActionActionActionAction方法 ................................ ................................ ..... 20 测试你的应用程序 ................................ ................................ ................................ ......... 21 第二部分: 第二部分: iOSiOSiOS编程基础: 编程基础: Hello World Hello World Hello World Hello WorldHello World Hello World 应用程序如何工作的? 应用程序如何工作的? 应用程序如何工作的? ... 24 Interface BuilderInterface BuilderInterface BuilderInterface BuilderInterface Builder Interface BuilderInterface BuilderInterface BuilderInterface Builder Interface Builder Interface BuilderInterface Builder Interface Builder、头文件 和实现................................ ................................ .... 25 触摸和点击的背后机制 ................................ ................................ ................................ . 28 RunRun 按钮幕后机制 ................................ ................................ ................................ ......... 30 有任何问题么? ................................ ................................ ................................ ............. 32 第三部分: 第三部分: iOS iOS iOS iOS 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( 编程向导:创建一个简单的表视图( Table ViewTable ViewTable ViewTable View Table ViewTable ViewTable ViewTable ViewTable View)应 用程序 ................................ ................................ ................................ ................. 33 创建 SimpleTableSimpleTableSimpleTableSimpleTable SimpleTableSimpleTableSimpleTableSimpleTableSimpleTableSimpleTable项目 ................................ ................................ ................................ 34 42 连接数据源( DataSourceDataSourceDataSourceDataSourceDataSourceDataSourceDataSource DataSourceDataSource)和委托( DelegateDelegateDelegateDelegateDelegate DelegateDelegate) ................................ .................. 47 测试你的应用程序 ................................ ................................ ................................ ......... 49 在表视图 中添加缩略................................ ................................ ................................ . 50 接下来是什么? ................................ ................................ ................................ ............. 53 第四部分:定制 第四部分:定制 UITableViewUITableViewUITableViewUITableView UITableView UITableViewUITableViewUITableViewUITableView表视图单元格 表视图单元格 表视图单元格 ................................ ........ 55 显示不同的缩略图 ................................ ................................ ................................ ......... 55 [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] [thumbnails objectAtIndex:indexPath.row] 有什么用途? .............................. 59 定制表视图单元格 ................................ ................................ ................................ ......... 60 设计单元格 ................................ ................................ ................................ ..................... 61 为定制单元格创建类 ................................ ................................ ................................ ..... 68 Property Property Property Property Property Property Property 和 OutletOutlet OutletOutlet ................................ ................................ ................................ ..... 70 @synthesize @synthesize @synthesize @synthesize @synthesize @synthesize @synthesize @synthesize 指令 ................................ ................................ ................................ ........ 71 建立连接 ................................ ................................ ................................ .......................... 71 更新 SimpleTableSimpleTableSimpleTableSimpleTable SimpleTableSimpleTableSimpleTableSimpleTableSimpleTableSimpleTableViewControllerViewControllerViewControllerViewController ViewControllerViewControllerViewControllerViewControllerViewControllerViewControllerViewControllerViewControllerViewController ................................ ................................ ............ 73 留给你的作业 ................................ ................................ ................................ ................. 77 接下来讲什么? ................................ ................................ ................................ ............. 79




















- beihangkaka2013-01-07适合开始者
- syimy2013-01-07很基础,完全手把手的指导,适合零基础的同学
- mgc_05302012-08-24从基础开始逐渐深入,适合开始者


- 粉丝: 3
- 资源: 21
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


会员权益专享
