Swift学习手册 版权信息
- ISBN:9787519803223
- 条形码:9787519803223 ; 978-7-5198-0322-3
- 装帧:一般胶版纸
- 册数:暂无
- 重量:暂无
- 所属分类:>>
Swift学习手册 本书特色
本书分为四部分,涵盖以下内容:Swift基础知识:学习Swift的面向对象特性,以及各种开发工具。OS X应用开发:规划应用,处理文档,然后构建各项功能。iOS应用开发:使用多媒体、联系人、位置、通知和iCloud 构建一个功能完善的iOS记事本应用。高级应用扩展:支持Apple Watch,学习如何调试、监控和测试全部三个Swift应用。
Swift学习手册 内容简介
本书讲解常用的Swift设计模式、Apple平台中应用的结构,还会说明如何把应用提交到App Store。构建真实可用的OS X和iOS应用,动手实践Swift编程语言。
Swift学习手册 目录
前言 .................................................................................................1**部分 Swift 基础第1章新手入门 ........................................................................................91.1 Apple开发者计划 ..................................................................................111.2 使用Xcode创建**个项目 ..........................................................................131.3 开发一个简单的Swift应用 ..........................................................................261.4 使用iOS模拟器 ....................................................................................301.5 小结 .............................................................................................32第2章 Swift基础 ......................................................................................332.1 Swift编程语言 ....................................................................................342.2 Playground .......................................................................................362.3 注释 .............................................................................................382.4 流程控制 .........................................................................................382.5 变量和常量 .......................................................................................422.6 运算符 ...........................................................................................432.7 类型 .............................................................................................442.8 处理字符串 .......................................................................................452.9 函数和闭包 .......................................................................................562.10 小结 ............................................................................................63第3章 Swift面向对象应用开发...........................................................................643.1 类和对象 .........................................................................................643.2 结构体 ...........................................................................................773.3 模块 .............................................................................................783.4 Swift标准库、Foundation、Cocoa和Cocoa Touch ......................................................783.5 数据 ................................................................................................................793.6 错误处理 .........................................................................................................813.7 内存管理 .........................................................................................................833.8 Cocoa和Cocoa Touch 采用的设计模式 ...............................................................843.9 应用的结构 .....................................................................................................883.10 小结 ..............................................................................................................89第二部分 构建一个OS X应用第4章 构建OS X记事本应用的前期准备工作..........................................93 4.1 设计这个OS X记事本应用.............................................................................934.2 创建OS X应用项目.........................................................................................974.3 定义文档类型 ...............................................................................................1014.4 添加图标 .......................................................................................................1064.5 小结 ..............................................................................................................108第5章 在OS X中处理文档 .................................................................................1095.1 NSDocument类 .............................................................................................1095.2 在文档中存储数据 ........................................................................................1105.3 存储文本 ....................................................................................................... 1115.4 基本的UI ......................................................................................................1205.5 小结 ..............................................................................................................128第6章 用户界面和 iCloud .................................................................................1296.1 更新UI ..........................................................................................................1296.2 附件和文件扩展名的UI ................................................................................1336.3 增强附件系统 ...............................................................................................1546.4 通过拖曳添加附件 ........................................................................................1596.5 iCloud ...........................................................................................................1666.6 iCloud基础 ....................................................................................................1676.7 小结 ..............................................................................................................170第三部分 构建一个iOS应用第7章 构建iOS记事本应用的前期准备工作...............................................173 7.1 设计这个iOS应用 .........................................................................................1747.2 创建iOS应用项目 .........................................................................................1797.3 为iOS应用启用iCloud ...................................................................................1837.4 定义文档类型 ...............................................................................................1877.5 小结 ..............................................................................................................189第8章 处理iCloud中的文件.......................................................................................1908.1 应用沙盒 .......................................................................................................1908.2 iCloud 的可用性 ..........................................................................................1928.3 创建文档列表视图控制器 .............................................................................1928.4 定义 Document 类.......................................................................................2048.5 列出文档 .......................................................................................................2108.6 创建文档 .......................................................................................................2188.7 从iCloud中下载文件 .....................................................................................2218.8 删除文档 .......................................................................................................2258.9 重命名文档 ...................................................................................................2318.10 小结 ............................................................................................................235第9章 在iOS中处理文档 .........................................................................................2369.1 添加显示笔记的视图 ......................................................................................2369.2 编辑和保存文档 ...........................................................................................2449.3 小结 ..............................................................................................................246第10章 处理文件和文件类型 ......................................................................................24710.1 设计附件的界面 ..........................................................................................24710.2 列出附件 .....................................................................................................25110.3 处理冲突 .....................................................................................................26110.4 创建快速查看缩略图 ..................................................................................26710.5 小结 ............................................................................................................269第11章 图像和删除 ......................................................................................27011.1 添加附件 .....................................................................................................27011.2 添加图像附件 .............................................................................................27211.3 查看附件 .....................................................................................................27711.4 删除附件 .....................................................................................................28611.5 小结 ............................................................................................................293第12章 支持iOS生态系统.......................................................................................29412.1 通过UIActivityController实现分享 ......................................................................29412.2 Handoff .......................................................................................................29712.3 可搜索性 .....................................................................................................30112.4 小结 ............................................................................................................303第13章 扩展iOS应用 ........................................................................................30413.1 使用Spotlight索引扩展搜索........................................................................30513.2 “今天”小组件 ..........................................................................................31513.3 小结 ............................................................................................................323第14章 多媒体、联系人、位置和通知............................................................................32414.1 位置附件 .....................................................................................................32414.2 音频附件 .....................................................................................................33814.3 视频附件 .....................................................................................................35014.4 联系人附件 .................................................................................................35614.5 通知 ............................................................................................................36014.6 小结 ............................................................................................................371第15章 改进这个iOS应用.......................................................................................37215.1 朗读文本 .....................................................................................................37215.2 在SFSafariViewController 中打开链接 ........................................................37415.3 设置 ............................................................................................................38015.4 撤销功能 .....................................................................................................38115.5 图像滤镜 .....................................................................................................38415.6 全球化应用 .................................................................................................38815.7 辅助功能 .....................................................................................................39615.8 分屏多任务 .................................................................................................40015.9 小结 ............................................................................................................401第四部分 扩展应用第16章 构建一个watchOS应用 ................................................................405 16.1 为Apple Watch 设计 .....................................................................................40616.2 设计我们的watchOS应用 ............................................................................40716.3 创建watchOS扩展 .......................................................................................40916.4 小结 ............................................................................................................441第17章 代码质量和应用分发 ....................................................................................44217.1 调试 ............................................................................................................44217.2 Instruments .................................................................................................44417.3 测试 ............................................................................................................44917.4 在同一个项目中同时使用Objective-C和Swift ............................................45317.5 App Store ....................................................................................................45417.6 小结 ............................................................................................................457
展开全部
Swift学习手册 作者简介
Jon Manning是 Secret Lab的联合创始人之一,他是移动软件工程师、游戏设计师和计算机研究人员。他的Twitter账号是@desplesda。Paris Buttfield-Addison是Secret Lab的联合创始人之一,他是移动软件工程师,游戏设计师和计算机研究人员。他的Twitter账号是@parisba。Tim Nugent是移动应用开发者、游戏设计师、博士生和作者。他的Twitter账号是@The_McJones 。