Mastering Swift

Jon Hoffman

  • 出版商: Packt Publishing
  • 出版日期: 2015-06-30
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 380
  • 裝訂: Paperback
  • ISBN: 1784392154
  • ISBN-13: 9781784392154
  • 相關分類: Apple Developer
  • 下單後立即進貨 (約3~4週)

相關主題

商品描述

Master Apple's new Swift programming language by following the best practices to write efficient and powerful code

About This Book

  • Start with basic language features and progressively move to more advanced features
  • Learn to use Xcode's new Playground feature as you work through the immense number of examples in the book
  • Learn what makes development with Swift so exiting and also get pointers on pitfalls to avoid

Who This Book Is For

If you are a developer that learns best by looking at, and working with, code, then this book is for you. A basic understanding of Apple's tools is beneficial but not mandatory.

What You Will Learn

  • Prototype and test code in a Playground
  • Understand the basics of Swift, including operators, collections, control flows, and functions
  • Create and use Classes, Structures, and Enums, including object-oriented topics such as inheritance, protocols, and Extensions
  • Dwell into Subscripts, Optionals, and closures with real-world scenarios
  • Employ Grand Central Dispatch to add concurrency to your applications
  • Study the Objective-C interoperability with mix and match
  • Access network resources using Swift
  • Implement various standard design patterns in the Swift language

In Detail

Swift is Apple's new innovative and user-friendly development language, which is packed with modern features to make programming easier, fun, and flexible.

This book begins by giving you a solid Introduction to the Swift programming language so you can quickly begin developing applications using this interesting language. It also covers advanced topics such as Objective-C interoperability, ARC, closures, and concurrency. Each concept covered is backed up with example code and demonstrates how to properly execute it. Next, you will be taught about all of the advanced features of Swift, and its interaction with Apple's APIs and libraries. You'll then learn to interact with REST-based web services using Swift. We will conclude the book by getting equipped to design and build applications using established design patterns.

商品描述(中文翻譯)

這本書將教你如何掌握蘋果公司的新程式語言Swift,並遵循最佳實踐來撰寫高效且強大的程式碼。

關於本書:
- 從基本語言功能開始,逐漸深入研究更高級的功能。
- 學習如何在書中大量的範例中使用Xcode的新Playground功能。
- 了解Swift開發的樂趣所在,並獲得避免陷阱的指引。

本書適合對於透過閱讀和實際操作程式碼學習的開發者。對蘋果的工具有基本的了解會有幫助,但不是必需的。

你將學到的內容包括:
- 在Playground中進行原型和測試程式碼。
- 理解Swift的基礎知識,包括運算子、集合、控制流程和函式。
- 創建和使用類別、結構和列舉,包括面向對象的主題,如繼承、協議和擴展。
- 透過真實案例深入研究下標、可選型和閉包。
- 使用Grand Central Dispatch為應用程式添加並行處理。
- 學習Objective-C的互操作性。
- 使用Swift訪問網絡資源。
- 在Swift語言中實現各種標準設計模式。

Swift是蘋果公司創新且使用友好的開發語言,擁有現代化的功能,使程式設計更輕鬆、有趣和靈活。

本書首先介紹了Swift程式語言的基礎知識,讓你能夠快速開始使用這個有趣的語言開發應用程式。它還涵蓋了高級主題,如Objective-C的互操作性、ARC、閉包和並行處理。每個概念都有示例程式碼支持,並演示了如何正確執行它。接下來,你將學習Swift的所有高級功能,以及它與蘋果的API和庫的互動。然後,你將學習如何使用Swift與基於REST的網絡服務進行互動。最後,我們將學習如何使用已建立的設計模式設計和構建應用程式。