此商品已下架,若仍需天瓏代為查詢或代購書籍,請與門市客服人員聯繫,或 E-mail 至 service@tenlong.com.tw 將有專人為您服務。

Swift Quick Syntax Reference
暫譯: Swift 快速語法參考

Matthew Campbell

  • 出版商: Apress
  • 出版日期: 2014-09-21
  • 售價: $1,110
  • 貴賓價: 9.5$1,055
  • 語言: 英文
  • 頁數: 180
  • 裝訂: Paperback
  • ISBN: 1484204409
  • ISBN-13: 9781484204405
  • 相關分類: Apple Developer
  • 海外代購書籍(需單獨結帳)

商品描述

Swift Quick Syntax Reference is a condensed code and syntax reference to the new Apple Swift programming language, which is the alternative new programming language alongside Objective-C behind the APIs found in the Apple iOS SDK 8 and OS X Yosemite SDK. It presents the essential Swift syntax in a well-organized format that can be used as a handy reference.

You won’t find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any Swift programmer.

In the Swift Quick Syntax Reference, you will find a concise reference to the Swift language syntax using the new Playgrounds. Playgrounds lets you type a line of code and the result appears immediately.

What you’ll learn

  • How to declare and print constants and variables
  • What are and how to use numbers, strings, booleans, tuples, optionals, aliases, global and local variables, assertions and more
  • How to use assignment, arithmetic, comparison, ternary conditional, range, and logical operators
  • What are enumerations, arrays, dictionaries, loops, if/switch, control transfer, labeled statements
  • How to do closures in Swift
  • How to define or handle structures, classes, instances, class instance identity, properties, property observers, type properties, and type methods
  • How to work with subscripts, inheritance, overriding methods/properties, initialization, type checking/casting, nested types, extensions, delegation, generics and more...

    Who this book is for

    This book is a quick, handy syntax reference for experienced Objective-C, Mac, and iOS programmers, and a concise, easily-digested introduction for other programmers new to Mac, iOS and of course Swift.

    Table of Contents

    1. Hello World

    2. Declaring Constants and Variables

    3. Printing Variables and Constants

    4. Code Comments

    5. Numbers

    6. Strings

    7. Booleans

    8. Tuples

    9. Optionals

    10. Type Aliases

    11. Global and Local Variables

    12. Assertions

    13. Assignment Operators

    14. Arithmetic Operators

    15. Comparison Operators

    16. Ternary Conditional Operator

    17. Range Operators

    18. Logical Operators

    19. Enumeration

    20. Arrays

    21. Dictionaries

    22. Loops

    23. if Statements

    24. switch Statements

    25. Control Transfer Statements

    26. Labeled Statements

    27. Functions

    28. Nested Functions

    29. Closures

    30. Structures

    31. Classes

    32. Using Instances

    33. Class Instance Identity Operators

    34. Properties

    35. Property Observers

    36. Class Type Properties

    37. Type Methods

    38. Subscripts

    39. Inheritance

    40. Overriding Methods and Properties

    41. Initialization

    42. De-initialization

    43. Type Casting

    44. Nested Types

    45. Extensions

    46. Protocols

    47. Delegation

    48. Generics

    49. Automatic Reference Counting

    商品描述(中文翻譯)

    《Swift 快速語法參考》是一本針對新的 Apple Swift 程式語言的精簡代碼和語法參考書,這是與 Objective-C 並行的替代新程式語言,支援 Apple iOS SDK 8 和 OS X Yosemite SDK 中的 API。它以良好組織的格式呈現了基本的 Swift 語法,可作為方便的參考。

    在這本書中,您不會找到任何技術術語、冗長的範例、拖沓的歷史課程或機智的故事。您會發現的是一本簡潔、直截了當且高度可讀的語言參考書。這本書充滿了有用的信息,是任何 Swift 程式設計師的必備工具。

    在《Swift 快速語法參考》中,您將找到使用新的 Playgrounds 的 Swift 語言語法的簡明參考。Playgrounds 讓您可以輸入一行代碼,結果會立即顯示。

    您將學到的內容:
    - 如何宣告和列印常數和變數
    - 數字、字串、布林值、元組、可選值、別名、全域和區域變數、斷言等的定義及使用方法
    - 如何使用賦值、算術、比較、三元條件、範圍和邏輯運算符
    - 列舉、陣列、字典、迴圈、if/switch、控制轉移、標籤語句的定義
    - 如何在 Swift 中使用閉包
    - 如何定義或處理結構、類別、實例、類別實例身份、屬性、屬性觀察者、類型屬性和類型方法
    - 如何使用下標、繼承、覆寫方法/屬性、初始化、類型檢查/轉換、嵌套類型、擴展、委派、泛型等...

    本書適合對象:
    這本書是經驗豐富的 Objective-C、Mac 和 iOS 程式設計師的快速、方便的語法參考,也是對其他新接觸 Mac、iOS 和當然還有 Swift 的程式設計師的簡明易懂的介紹。

    目錄:
    1. Hello World
    2. 宣告常數和變數
    3. 列印變數和常數
    4. 代碼註解
    5. 數字
    6. 字串
    7. 布林值
    8. 元組
    9. 可選值
    10. 類型別名
    11. 全域和區域變數
    12. 斷言
    13. 賦值運算符
    14. 算術運算符
    15. 比較運算符
    16. 三元條件運算符
    17. 範圍運算符
    18. 邏輯運算符
    19. 列舉
    20. 陣列
    21. 字典
    22. 迴圈
    23. if 語句
    24. switch 語句
    25. 控制轉移語句
    26. 標籤語句
    27. 函數
    28. 嵌套函數
    29. 閉包
    30. 結構
    31. 類別
    32. 使用實例
    33. 類別實例身份運算符
    34. 屬性
    35. 屬性觀察者
    36. 類型屬性
    37. 類型方法
    38. 下標
    39. 繼承
    40. 覆寫方法和屬性
    41. 初始化
    42. 反初始化
    43. 類型轉換
    44. 嵌套類型
    45. 擴展
    46. 協議
    47. 委派
    48. 泛型
    49. 自動引用計數

    最後瀏覽商品 (20)