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学习手册
26
1
调试面板
调试面板(见图
1-16
)显示程序运行时调试器报告的信息。只要想查看应用运行时报告
了什么信息,就可以查看调试面板。没运行程序时,默认不显示调试面板。如果想打开
调试面板,可以单击
Xcode
导航栏中视图选择区里中间那个按钮。
1-16
调试面板
调试面板分为两部分:左边显示应用暂停时局部变量的值;右边显示调试器正在输出的
日志,包含所调试应用的全部日志。
单击窗口右上角视图选择区里的按钮可以打开或关闭调试面板(见图
1-17
)。
1-17
单击视图选择区中间那个按钮可以关闭或打开调试面板
1.3
开发一个简单的
Swift
应用
本书大部分章节讲解如何开发一个复杂的、功能完整的
Swift
应用,涵盖
Apple
的三个
平台:
OS X
iOS
watchOS
。不过目前,在学习
Swift
知识之前,我们先构建一个特
别简单的
iOS
应用,简单体验一下这个过程。
新手入门
27
如果你对
Mac
开发更感兴趣,别着急,这里讲到的技术也适用
Mac
应用。我们会
在第二部分详细说明如何开发
Mac
应用。
这个简单的应用功能十分简陋:界面中显示一个按钮,单击后弹出一个提示框,并且把
按钮的标注改成“
Test!
”。我们将在本章前面的“使用
Xcode
创建第一个项目”中构建,
因此要打开那个项目。
通常,最好先设计界面 ...
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