更新时间:2021-07-09 18:30:37
封面
版权信息
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it...
How it works...
There's more...
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Swift Programming Language
Introduction
Using closures to create self-contained code
Inferring type
Omitting the return keyword
Shorthand arguments
Creating enumerations to write readable code
Enum raw values
Assigning raw values
Using Enums with raw values
Enums with associated values
Working with protocols and delegates
Mutating methods
Delegation
Class-only protocols
Checking protocol conformance
Optional requirements
Using extensions to extend classes functionality
Mutating instance methods
Adding new initializer
Define subscripts
Working with memory management and ARC
Using error handling
Multiple catch statements
Disable error propagation
Using generics to write generic and reusable code
The Essentials
Using UIView via code or interface builder to build your own custom views
Working with navigation controller and navigation bar
Push and pop
Hiding navigation bar
Navigation bar color
Working with stack views
How to do it
Working with UICollectionView