售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Learn Swift by Building Applications
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Swift Basics – Variables and Functions
Variables
Optional types
Enumeration types
Basic flow statements
The if statements – how to control the code flow
Loops
The while loops
The switch statement
Functions
What is a tuple?
What is the guard statement?
How to tackle huge problems – bottom-up versus top-down
Summary
Getting Familiar with Xcode and Playgrounds
Installing Xcode
Exploring Xcode
What do we see on the screen?
Toolbar
Menu
The Navigator panel (located to the left)
The Debug panel (located at the bottom)
The Utilities panel (located to the right)
Xcode preferences window
Playground
What is a playground?
Let's add some code
How to add auxiliary code to a playground
How to add resource to a playground
Converting a playground to a workspace
Markup in playgrounds
Different items in the markup language
Basic markup items
Summary
Creating a Minimal Mobile App
Your first iOS application
Project structure
AppDelegate
Application states
ViewController
Git
Summary
Structures, Classes, and Inheritance
Structures and classes
Extensions
The deinit method
Type properties and functions
Adding custom data types to a playground
Inheritance
Base class
Class properties
Model-View-Controller (MVC)
Summary
Adding Interactivity to Your First App
Storyboards
Visual components
Adding items to the storyboard
Linking the UI with the code
General discussion
Summary
How to Use Data Structures, OOP, and Protocols
Primary collection types
Generics
Array
Set
Dictionary
How to choose the best collection type
List of items in a playground
UICollectionView
UICollectionViewCell
Reusing cells
Layouts
Table view in iOS app
Model list of cities
Displaying all cities
Adding search
Protocols
Protocols and inheritance
Summary
Developing a Simple Weather App
Defining the app screens
The home screen
Favorite locations
Constraints
Picking a location
Model
Locations
Controllers and segues
The first segue
How to pass data
Passing information in the reverse direction
Defining a custom segue
Further improvements
Summary
Introducing CocoaPods and Project Dependencies
Software – the modern way
Ruby and CocoaPods
How to use it
CocoaPods useful commands
Carthage
Swift Package Manager
Useful commands
Popular third-party libraries
Alamofire
Texture
RxSwift
Summary
Improving a Version of a Weather App
Weather forecast API
What's an API?
List of requests
Creating new models
Pure network requests
Alamofire implementation
Improvements using third-party libraries
Better error handling
About the screen
Summary
Building an Instagram-Like App
Tabbed app project
Firebase
Login
The different screens
Custom buttons on the tab bar
Creating a post
Models
Firebase
Filters
Summary
Instagram-Like App Continued
Home screen
Profile screen
Search screen
Favorites screen
Polishing the home screen
Summary
Contributing to an Open Source Project
Your account at GitHub
Forking a repository
Let's contribute
Pull request
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜