Swift 2 Cookbook
暫譯: Swift 2 食譜
Kyle Begeman
- 出版商: Packt Publishing
- 出版日期: 2016-03-31
- 售價: $2,030
- 貴賓價: 9.5 折 $1,929
- 語言: 英文
- 頁數: 400
- 裝訂: Paperback
- ISBN: 1785889214
- ISBN-13: 9781785889219
-
相關分類:
Apple Developer
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Conceptualize and write effective applications for iOS/OS X using Swift 2
- Make the most of Swift's diverse features, from configuring your projects to using design patterns and different types of databases
- A fast-paced, comprehensive guide equipped with lots of tips and tricks to help you learn about Swift programming quickly
Book Description
Swift is Apple's innovative development language that was introduced at the WWDC (WorldWide Developers Conference) 2014 alongside Xcode 6 and iOS 8. This user-friendly language is packed with modern features to make programming easier and fun, with a lot of flexibility. With Swift 2 comes even better performance, a new error handling API, protocol extensions, and super support for availability checking.
This book will equip you with all the practical programming aspects of Swift 2. It covers the important features and paradigms that Swift provides to developers. You will begin by installing Xcode from the App Store and using Swift as an interpreter. Then, you will see how you can upgrade your existing Swift 1.2 code to Swift 2.0 with the help of Xcode. You will see how to use structs and generics, and work with different Design Patterns with Swift. Debug and test your code using Xcode and see how to use assembly code effectively with Swift.
By the end of this book, you will have the necessary skills to get the most out of Swift to develop effective mobile and web applications.
What you will learn
- Install Xcode from the App Store
- Upgrade your existing Swift 1.2 code to Swift 2.0
- Use the standard Swift 2.0 library and collections
- Work with structs, generics, and design patterns in Swift
- Use the new markup language to provide rich documentation of code
- Write a book using Playgrounds and Swift
- Debug and test your code using Xcode
- Integrate your code with Objective-C and use assembly code with Swift
- Leverage the Objective-C runtime when compiling Swift using associated objects
About the Author
Kyle Begeman is a self-taught programmer, entrepreneur, and educator. With over 6 years of experience in iOS development, Kyle has produced multiple applications personally and professionally (usually with large businesses). Kyle also produces educational videos and courses for others to learn how to program. A self-proclaimed nerd living in Silicon Valley, Kyle spends most of his free time listening to and playing music while thinking up the next great project. You can learn more about Kyle and his work by visiting www.kylebegeman.com.
Table of Contents
- Getting Started with Xcode and Swift
- Standard Library and Collections
- Using Structs and Generics
- Design Patterns with Swift
- Multitasking in Your App
- Working with Playgrounds
- Swift Debugging with Xcode
- Integrating with Objective-C
- Dealing with Other Languages
- Data Access
- Extensions, Photos, and More
商品描述(中文翻譯)
**主要特點**
- 構思並撰寫有效的 iOS/OS X 應用程式,使用 Swift 2
- 充分利用 Swift 的多樣功能,從配置專案到使用設計模式和不同類型的資料庫
- 一本快速且全面的指南,提供許多技巧和竅門,幫助您快速學習 Swift 程式設計
**書籍描述**
Swift 是蘋果公司在 2014 年 WWDC(全球開發者大會)上推出的創新開發語言,與 Xcode 6 和 iOS 8 一同發布。這種使用者友好的語言擁有現代化的特性,使程式設計變得更簡單且有趣,並且具有很大的靈活性。Swift 2 提供了更好的性能、新的錯誤處理 API、協議擴展以及對可用性檢查的強大支持。
本書將為您提供 Swift 2 的所有實用程式設計方面的知識。它涵蓋了 Swift 為開發者提供的重要特性和範式。您將從 App Store 安裝 Xcode 開始,並使用 Swift 作為解釋器。接著,您將學習如何在 Xcode 的幫助下將現有的 Swift 1.2 代碼升級到 Swift 2.0。您將了解如何使用結構體和泛型,並在 Swift 中使用不同的設計模式。使用 Xcode 調試和測試您的代碼,並學習如何有效地使用組合語言代碼與 Swift。
在本書結束時,您將具備充分的技能,充分利用 Swift 開發有效的移動和網頁應用程式。
**您將學到的內容**
- 從 App Store 安裝 Xcode
- 將現有的 Swift 1.2 代碼升級到 Swift 2.0
- 使用標準的 Swift 2.0 函式庫和集合
- 在 Swift 中使用結構體、泛型和設計模式
- 使用新的標記語言提供代碼的豐富文檔
- 使用 Playgrounds 和 Swift 撰寫一本書
- 使用 Xcode 調試和測試您的代碼
- 將您的代碼與 Objective-C 整合,並在 Swift 中使用組合語言代碼
- 在編譯 Swift 時利用 Objective-C 運行時,使用關聯對象
**關於作者**
**Kyle Begeman** 是一位自學成才的程式設計師、企業家和教育者。擁有超過 6 年的 iOS 開發經驗,Kyle 個人和專業上製作了多個應用程式(通常與大型企業合作)。Kyle 也製作教育視頻和課程,幫助他人學習程式設計。作為一名自稱的書呆子,Kyle 生活在矽谷,利用大部分空閒時間聆聽和演奏音樂,同時思考下一個偉大的項目。您可以通過訪問 www.kylebegeman.com 瞭解更多關於 Kyle 和他的工作。
**目錄**
1. 開始使用 Xcode 和 Swift
2. 標準函式庫和集合
3. 使用結構體和泛型
4. Swift 中的設計模式
5. 應用程式中的多任務處理
6. 使用 Playgrounds
7. 使用 Xcode 進行 Swift 調試
8. 與 Objective-C 整合
9. 處理其他語言
10. 數據訪問
11. 擴展、照片等