售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Application Development with Swift
Table of Contents
Application Development with Swift
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Hello Swift
Introduction to Swift
Playgrounds
The code structure
Arrays
Initializing an array
Iterating over arrays
Appending items
Removing and updating items
Dictionaries
Initializing a dictionary
Appending or updating values
Removing items from the dictionary
Enum
Using enumerations with the switch statement
Enumerations with associated values
Functions
Closures
Summary
2. Advanced Swift
Type casting and type checking
Downcasting
Using Any and AnyObject
Protocols
Properties
Methods
Class-only protocols
Protocol compositions
The protocol conformance
The optional requirements
Delegation
Extensions
Adding computed properties
Adding new initializers
Adding methods
Generics
Operator functions
Memory management
Using Objective-C and Swift in a single project
Importing Objective-C in the Swift project
Importing Swift in the Objective-C project
Limitations
Summary
3. Touch ID
What is Touch ID?
The LocalAuthentication framework
Summary
4. Introduction to HealthKit
What is HealthKit?
HealthKit limitations
HealthKit privacy
Getting started with HealthKit
Configuring the Xcode project
Getting your hands dirty with HealthKit
The HealthKit store
Asking for permissions
Updating the UI
Sharing data in the Health app
Summary
5. Introduction to Metal
What is Metal?
Features
3D rendering
Pipeline
Transformations
Projection
Other options to work with 3D rendering in iOS
Getting started with Metal
Devices and CAMetalLayers
The command queue
Vertex and color buffers
Vertex and fragment shaders
The render pipeline
The game loop and rendering
The display link
The render pass
The command buffer
Summary
6. Introduction to WatchKit
Apple watch
WatchKit
The WatchKit app
Glances
Actionable notifications
Working with WatchKit
Xcode targets
Interface controllers
Interface elements
Groups
Navigating interfaces
Presenting modally
Animation
Working with glances
Summary
7. Swift App Extensions
App extensions
Today
Share
Photo Editing
Document Provider
Understanding the Document Provider's lifecycle
The custom keyboard
Keyboard security
Keyboard settings
Working with the custom keyboard
Demo
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜