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学习手册
18
1
1-6
Xcode 的编辑器
显示着项目设置
在编辑器选择栏中还能把编辑器分成主编辑器和辅助编辑器。辅助编辑器中显示文件与
主编辑器中打开的文件有关。不管打开什么文件,辅助编辑器中都会显示与之相关的
文件。
比如说,打开界面文件后打开辅助编辑器,辅助编辑器默认会显示与正在编辑的界面有
关的代码。如果打开另一个界面文件,辅助编辑器则会显示与这个新打开的文件有关的
代码。
编辑器顶部是跳转栏。在跳转栏中能快速从正在编辑的内容跳转到相关的其他内容,例
如同一文件夹中的另一个文件。使用跳转栏能快速导览项目。
工具栏
Xcode
的工具栏(见图
1-7
)是整个界面的控制中心。使用
Xcode
开发应用时,这是唯
一不会发生重大变化的部分。在这里可以控制让代码做什么。
1-7
Xcode 的工具栏
OS X
窗口控件之后,工具栏中从左到右的按钮如下:
新手入门
19
运行按钮(见图
1-8
单击这个按钮后,
Xcode
会编译并运行应用。
1-8
运行按钮
对不同的应用类型和设置来说,这个按钮有不同的效果:
如果是
Mac
应用,新应用会出现在
Dock
中,而且在设备中运行。
如果是
iOS
应用,新应用会在
iOS
模拟器或连接的
iOS
设备(如
iPhone
iPad
)中启动。
此外,如果按住这个按钮不放,则可以把“运行” ...
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