Swift in 24 Hours,Sams Teach Yourself


Swift in 24 Hours,Sams Teach Yourself
by BJ Miller
pages 页数: 464 pages
Publisher Finelybook 出版社: Sams; 2 edition (22 Nov. 2015)
Language 语言: English
ISBN-10 书号: 0672337657
ISBN-13 书号: 9780672337659
In just 24 lessons of one hour or less,Sams Teach Yourself Swift in 24 Hours,Second Edition,will teach you how to build next-generation OS X and iOS apps with Apple’s Swift 2 programming language. This book’s straightforward,step-by-step approach helps you quickly master Swift 2’s core concepts,structure,and syntax and use Swift to write safe,powerful,modern code. In just a few hours you’ll be applying features such as extensions,closures,protocols,and generics. Every lesson builds on what you’ve already learned,giving you a rock-solid foundation for real-world success.
Step-by-step instructions carefully walk you through the most common Swift 2 programming tasks.
Practical,hands-on examples show you how to apply what you learn.
Quizzes and exercises help you test your knowledge and stretch your skills.
Notes and tips point out shortcuts and solutions.
Learn how to...
Get started with Swift 2.0’s Xcode 7 development environment
Master Swift’s fundamental data types
Use operators to change,assign,combine,check,or verify values
Retain data and preferences in memory with arrays,sets,and dictionaries
Control program flow,modify execution paths,and iterate code
Perform complex actions concisely with Swift 2.0’s improved functions
Work with higher-order functions and closures
Harness the power of structs,enums,classes,and class inheritance
Take advantage of Swift’s advanced memory allocation and references
Use protocols to define behavior and explore Protocol-Oriented Programming
Add type functionality with extensions
Smoothly handle errors
Leverage the power of generics to create flexible and reusable code
Interoperate with Objective-C code
Get started with Functional Programming approaches and thinking functionally
Contents
1 Introducing the Swift Development Environment
2 Learning Swift’s Fundamental Data Types
3 Using Operators in Swift
4 Working with Collection Types
5 Controlling Program Flow with Conditionals
6 Understanding Optional Values
7 Iterating Code with Loops
8 Using Functions to Perform Actions
9 Understanding Higher Order Functions and Closures
10 Learning About Structs and Classes
11 Implementing Class Inheritance
12 Harnessing the Power of Enums
13 Customizing Initializers of Classes,Structs,and Enums
14 Digging Deeper with Properties
15 Adding Advanced Type Functionality
16 Understanding Memory Allocation and References
17 Using Protocols to Define Behavior
18 Using Extensions to Add Type Functionality
19 Working with Optional Chaining
20 Introducing Generics
21 Understanding Protocol-Oriented Programming
22 Handling Errors
23 Adding Interoperability with Objective-C
24 Functional Thinking in Swift
在24小时或以下的24小时课程中,Sams Teach Yourself Swift将在24小时第二版中教你如何使用Apple的Swift 2编程语言构建下一代OS X和iOS应用程序。本书的简单一步一步的方法可以帮助您快速掌握Swift 2的核心概念,结构和语法,并使用Swift编写安全,强大的现代代码。在短短几个小时内,您将会应用扩展,关闭,协议和泛型等功能。每一课都建立在您已经学到的知识之上,为现实世界的成功奠定了坚实的基础。
分步说明仔细地介绍了最常见的Swift 2编程任务。
实际的实践示例告诉你如何应用你学到的东西。
测验和练习可以帮助您测试您的知识并扩展您的技能。
笔记和技巧指出捷径和解决方案。
了解如何...
开始使用Swift 2.0的Xcode 7开发环境
Master Swift的基本数据类型
使用运算符来更改,分配,组合,检查或验证值
使用数组,集合和字典保留内存中的数据和首选项
控制程序流程,修改执行路径和迭代代码
使用Swift 2.0的改进功能简洁地执行复杂的操作
处理高阶函数和关闭
利用结构,枚举,类和类继承的力量
利用Swift的高级内存分配和引用
使用协议定义行为并探讨面向协议的编程
使用扩展名添加类型功能
顺利处理错误
利用泛型的力量来创建灵活和可重复使用的代码
与Objective-C代码进行互操作
开始功能编程方法和功能思考
内容
1简介开发环境
2学习Swift的基础数据类型
3使用Swift中的运算符
4使用集合类型
5控制程序流程与条件
6了解可选值
7循环代码循环
8使用函数执行操作
9了解高阶函数和关闭
10了解结构和类
11实现类继承
利用枚举的力量
13,定制类,结构和枚举的初始化器
14深入挖掘物业
15添加高级类型功能
16了解内存分配和参考
17使用协议来定义行为
18使用扩展添加类型功能
19使用可选链接
20通用引言
21了解面向协议的编程
22处理错误
添加与Objective-C的互操作性
24功能思维在Swift

打赏
未经允许不得转载:finelybook » Swift in 24 Hours,Sams Teach Yourself

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫打赏

微信扫一扫打赏