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学习手册
93
4
构建
OS X
记事本应用的
前期准备工作
第一部分介绍了
Apple
开发者计划,在
Apple
平台中做开发所需的工具,以及
Swift
言基础。现在,我们要开始构建真正的应用了!
从本章开始,我们将构建一个记事本应用,名为
Notes
。这是
Mac
应用,用于编写笔记,
除了文本之外还能添加其他附件,如图像、位置、视频、音频、联系人等。我们将在第
三部分为
Notes
开发一个运行在
iOS
平台中的对应应用。
本章不会编写任何代码,但是依然重要。我们将使用
Xcode
创建一个真实可用的
OS X
应用(不过还没什么用),做好前期准备。
本章要做的前期准备工作对大多数使用
Swift
开发的
OS X
iOS
应用都有用。使用
Xcode
Swift
Apple
平台开发应用最大的优势是,很多工作都为我们做好了。就在
一两年前,本章所做的前期准备工作还要编写大量代码才能完成。
即便你只想学习使用
Swift
开发
iOS
应用,我们还是建议你阅读讲解如何开发
OS X
用的这几章(只有四章而已)。这几章能让你更好地理解如何使用
Swift
Xcode
构建
应用,这样在第三部分开始构建
iOS
应用时便能得心应手。
4.1
设计这个
OS X
记事本应用
准备着手构建这个应用时,我们只知道自己想构建一个支持添加附件的记事本应用。为
了理清整个过程,我们画了几张线框图。
94
4
线框图是草图,示意想构建的应用。在纸上(电子纸或真正的纸)画出想法比直接
动手实现应用快得多,而且画出想法的过程有助于理清思路。
我们通常使用
OmniGraffle ...
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