Sams Teach Yourself Swift in 24 Hours, 2/e (Paperback)

BJ Miller

  • 出版商: SAMS
  • 出版日期: 2015-12-02
  • 售價: $1,225
  • 貴賓價: 9.5$1,164
  • 語言: 英文
  • 頁數: 464
  • 裝訂: Paperback
  • ISBN: 0672337657
  • ISBN-13: 9780672337659
  • 相關分類: Apple Developer
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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

商品描述(中文翻譯)

在僅僅24個小時或更少的時間內,《Sams Teach Yourself Swift in 24 Hours, Second Edition》將教你如何使用蘋果的Swift 2編程語言來開發下一代的OS X和iOS應用程式。這本書以直觀、逐步的方式幫助你快速掌握Swift 2的核心概念、結構和語法,並使用Swift來編寫安全、強大、現代化的程式碼。僅僅幾個小時內,你就能應用擴展、閉包、協議和泛型等功能。每一課都建立在你已經學到的基礎上,為你在現實世界中取得成功打下堅實的基礎。

逐步的指導仔細引導你完成最常見的Swift 2編程任務。
實用的實例展示你如何應用所學知識。
測驗和練習幫助你測試知識並提升技能。
註解和提示指出快捷方式和解決方案。

學習如何...
- 開始使用Swift 2.0的Xcode 7開發環境
- 掌握Swift的基本數據類型
- 使用運算符來改變、賦值、結合、檢查或驗證值
- 使用數組、集合和字典在內存中保留數據和偏好設置
- 控制程序流程,修改執行路徑,並迭代程式碼
- 使用Swift 2.0改進的函數來簡潔地執行複雜操作
- 使用高階函數和閉包
- 利用結構、枚舉、類和類繼承的威力
- 利用Swift的高級內存分配和引用
- 使用協議來定義行為並探索面向協議的編程
- 使用擴展添加類型功能
- 順利處理錯誤
- 利用泛型的威力創建靈活且可重用的程式碼
- 與Objective-C代碼互操作
- 開始使用函數式編程方法和思維