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

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

by Matt Neuburg
January 2017
Intermediate to advanced content levelIntermediate to advanced
552 pages
9h 43m
Chinese
China Machine Press
Content preview from iOS 编程基础:Swift、Xcode 和Cocoa 入门指南
项目的生命周期
411
Bundle display name
CFBundleDisplayName
位于设备屏幕上应用图标下方的名字;这个名字要短一些,以免被截断。本章之前
曾介绍过如何本地化显示名。
Supported interface orientations
UISupportedInterfaceOrientations
这个键指定了应用可以显示的方向。你可以通过目标编辑器
General
页签的复选框
进行设置。不过可能还需要手工编辑
Info.plist
以重新排列可能的方向顺序,因为在
iPhone
上,列出的第一个方向是应用实际启动的方向。
Required device capabilities
UIRequiredDeviceCapabilities
如果应用所需的能力并不是所有设备都具备,那么你就应该设置该键。对于应用来说,
如果运行在缺乏特定能力的设备上是无意义的,那就不要使用该键。
Bundle version
CFBundleVersion
应用需要一个版本号。最好在目标编辑器
General
页签中设置它。这里可能会让你有
些迷惑,因为它有两个域:
Version
对应于
Info.plist
中的“
Bundle versions string, short
”(
CFBundleShortVers-
ionString
)。
Build
对应于
Info.plist
中的“
Bundle version
”(
CFBundleVersion
)。
据我所知,如果设置了前者,那么
Apple
就会使用它, ...
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.
Start your free trial

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

Publisher Resources

ISBN: 9787111556350