Skip to Content
iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
book

iOS 编程基础:Swift、Xcode 和Cocoa 入门指南

by Matt Neuburg
January 2017
Intermediate to advanced
552 pages
9h 43m
Chinese
China Machine Press
Content preview from iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
354
8
概念“跳转”的精确含义取决于除了
Command
键外你所用的修饰键,也取决于你在
Xcode
首选项中导航窗格的设置。在默认情况下,按住
Command
键并单击会在同一个
编辑器中跳转,按住
Command
Option
键并单击会在辅助窗格中跳转,按住
Command
并双击会在新窗口中跳转。与之类似,
Command-Option-Control-J
会在所选词声明的辅
助窗格中跳转。
查看项目符号列表并导航到符号声明处的另一种方式是使用符号导航器(参见第
6
章)。
如果过滤栏中的第
2
个图标是高亮的,那就说明项目中存在声明的符号;如果没有,那
么来自于导入框架中的符号也会列出来。
要想跳转到名字已知的符号声明处,即便之前没有在代码中看到这个名字,你也可以
选择
File
Open Quickly
Command-Shift-O
)。在搜索框中,输入名字的主要字母,
Xcode
会智能地对其进行解析;比如,要搜索
application:didFinishLaunchingWithO
ptions:
,可以输入
appdidf
。可能的匹配项会列在搜索框下面的滚动列表中;你可以通
过鼠标或键盘导航该列表。除了来自于框架头文件的声明,自己代码中的声明也会列出
来,因此这是个快速导航代码的方式。
8.6
头文件
通常,头文件可以作为文档的一种形式,而且可能是最有价值的一种文档形式。头文件
一定是精确、最新且完备的;而类文档却不一定。首先,头文件包含了声明,但还有可
能包含一些颇具价值的信息;这也会提供类文档可能不会提供的信息 ...
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

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
Swift 人工智能实战:从基础理论到AI 驱动的应用程序开发

Swift 人工智能实战:从基础理论到AI 驱动的应用程序开发

Mars Geldard, Jonathon Manning, Paris Buttfield-Addison, Tim Nugent
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9787111556350