Skip to Content
Swift学习手册
book

Swift学习手册

by Jon Manning, Paris Buttfield-Addison, Tim Nugent
February 2017
Beginner to intermediate
472 pages
9h 53m
Chinese
China Electric Power Press Ltd.
Content preview from Swift学习手册
33
2
Swift
基础
Swift
编程语言在
2014
6
月举办的
Apple
全球开发者大会(
WWDC
)上发布。这门语
言让所有人眼前一亮,这是
Apple
主导开发的全新语言(包括所有支持库、开发者工具
和文档),而且能与现有的
Objective-C
语言无缝集成。最为重要的是,作为首个大版本,
Swift
语言十分稳定。
2015
6
月,
Apple
发布了
Swift 2.0
,这一版提升了性能,添加了一系列新特性,还改
进了
Cocoa
Cocoa Touch
平台的
API
,让二者更符合
Swift
风格。
2015
12
3
日,
Swift
开源了。相信作为开源项目(
http://www.swift.org
)的
Swift
会逐步发展成熟。
Xcode
支持安装多个
Swift
版本。如果你从
Swift
开源项目中下载,得到的可能就是
其他版本。关于如何在
Xcode
中使用自行下载的版本,请参阅
Swift
项目的下载页
面(
https://swift.org/download/
)。
本书涵盖
Swift 2.2
版。
Xcode
提供了转换程序,能把旧版
Swift
代码更新成最新稳定版的句法。打开“
Edit
菜单,选择“
Convert
”→“
To Latest Swift Syntax
…”,然后跟着向导做。
Swift
总结了众多语言的发展史,提供了许多非常酷的设计特性,这使得软件开发变得更
容易、更简单、更安全。本章首先概述
Swift
的目标,以及为此而做的努力,然后再深
入说明语言细节。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

PyTorch深度学习

PyTorch深度学习

Posts & Telecom Press, Vishnu Subramanian
深入淺出代數

深入淺出代數

Tracey Pilone, Dan Pilone
PHP学习手册

PHP学习手册

David Sklar
C语言核心技术(原书第2版)

C语言核心技术(原书第2版)

Peter Prinz, Tony Crawford

Publisher Resources

ISBN: 9787519803223