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学习手册
构建
OS X
记事本应用的前期准备工作
101
我们建议你把这个项目(以及所有项目)纳入
Git
或其他类似的版本控制器系统。
本书不会介绍
Git
,但是如果你以前没用过,我们强烈建议你花点时间学习
Git
Xcode
原生支持一些基本的
Git
功能,详情参见文档(
http://apple.co/21TI7zS
)。
5.
在项目导航顶部选择
Notes
项目(见图
4-6
)。如果想回顾
Xcode
的界面,就翻回第
1
章。
4-6
选择 Notes 项目
主编辑器中会显示这个项目的信息。
创建这个项目后得到了很多设置。除了应用本身之外,这个应用还能处理文档类对象。
如果现在运行这个应用,按
-N
键就可以新建文档,不过还无法把文档保存到硬
盘中。
4.3
定义文档类型
现在,我们要为文档类型再提供一些信息。
Notes
是一个基于文档的应用,也就是说它
的行为与
OS X
中其他基于文档的应用(如
Pages
TextEdit
)相似。
1.
在目标列表(
Targets
)中选择
Notes
应用。注意,一个项目可以包含多个目标,各
102
4
个目标都有生成产品所需的代码、用户界面和其他资源。我们在第
1
章首次提到了
目标。
如果没有看到目标列表,则确保在项目导航中选中
Notes
项目(前面有个蓝图图标),
然后单击编辑器左上角那个方框中有条竖线的图标(见图 ...
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