Swift 2 Cookbook

Kyle Begeman

  • 出版商: Packt Publishing
  • 出版日期: 2016-03-31
  • 售價: $1,890
  • 貴賓價: 9.5$1,796
  • 語言: 英文
  • 頁數: 400
  • 裝訂: Paperback
  • ISBN: 1785889214
  • ISBN-13: 9781785889219
  • 相關分類: Apple Developer
  • 下單後立即進貨 (約3~4週)

商品描述

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

  1. Getting Started with Xcode and Swift
  2. Standard Library and Collections
  3. Using Structs and Generics
  4. Design Patterns with Swift
  5. Multitasking in Your App
  6. Working with Playgrounds
  7. Swift Debugging with Xcode
  8. Integrating with Objective-C
  9. Dealing with Other Languages
  10. Data Access
  11. Extensions, Photos, and More

商品描述(中文翻譯)

主要特點



  • 使用 Swift 2 為 iOS/OS X 開發有效應用程式的概念和寫作技巧

  • 充分利用 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 組合語言。


通過閱讀本書,您將具備開發有效的移動和網頁應用程式所需的必要技能。

您將學到什麼



  • 從 App Store 安裝 Xcode

  • 將現有的 Swift 1.2 代碼升級到 Swift 2.0

  • 使用標準的 Swift 2.0 函式庫和集合

  • 在 Swift 中使用結構、泛型和設計模式

  • 使用新的標記語言為程式碼提供豐富的文檔

  • 使用 Playgrounds 和 Swift 編寫書籍

  • 使用 Xcode 進行程式碼調試和測試

  • 將您的程式碼與 Objective-C 整合,並在 Swift 中使用組合語言

  • 在編譯 Swift 時利用 Objective-C 執行時庫使用相關物件

關於作者


Kyle Begeman 是一位自學程式設計師、企業家和教育工作者。Kyle 在 iOS 開發方面擁有超過 6 年的經驗,他個人和專業上開發了多個應用程式(通常與大型企業合作)。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. 擴展、照片等