Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Jayant Varma, Brett Ohland
Xcode 7 Essentials - Second Edition
Xcode 7 Essentials Second Edition
Table of Contents
Xcode 7 Essentials Second Edition
Credits
About the Authors
About the Reviewer
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction to Xcode
Requirements and getting Xcode
Features of Xcode
What's new in Xcode 7?
Sideloading
Swift 2
Playgrounds
Testing
Crash logs
Summary
2. A tour of Xcode
Starting Xcode
Creating a new project
Choosing a template
Choosing the project options
Setting the project properties
Xcode overview
The toolbar area
The navigator area
The editor area
The Standard editor
The Assistant editor
The comparison editor
The utilities area
The debug area
Development languages
Summary
3. Playgrounds
Before we start
The storyboard workspace
Learning Swift
Working with constants and variables
Value types
Working with strings
Working with numbers
Working with Booleans
Adding different types
Collection types
Array type
Creating arrays
Accessing items
Modifying arrays
Loops and iteration
Dictionary type
Creating dictionaries
Accessing items
Modifying items
Loops and iteration
Set type
Creating sets
Accessing, modifying, and iterating through a set
Set operations
The Any and AnyObject types
Optionals
Unwrapping optionals
if let
guard let
Unwrapping multiple optionals
Optional chaining
Tuples
Accessing items
Conditional statements
The if statement
The switch statement
The guard statement
Loops
For and for in
While and repeat-while
Breaking or continuing
Functions and closures
Returns
Parameters
Closures
Classes and structures
Classes versus structures
Extending classes and structures
Enumerations
Error handling
Propagating errors
Handling errors, do-catch and try?
do catch
Try?
Asserting errors
Defer statements
Summary
4. Interface Builder
Model View Controller
Understanding Interface Builder
Views and View Controllers
Adding elements to your view
Adaptive UI
Size Classes
Auto Layout
Debugging Auto Layout
Tweaking values
Pinning
Relative positioning
Adding more views
Navigation controllers
Connecting views and controllers
Subclassing UIViewController
Understanding subclassing
Creating connections, outlets and actions
Different elements in different Size Classes
Layout previews
Managing connections
Adding gesture recognizers
Summary
5. Table, Collection, and Stack Views
Plain views versus Table, Collection, and Stack views
Static table views
Dynamic table views
Data sources
Delegates
Bringing it all together
Collection views
Starting the example
Creating a custom UICollectionViewCell
Stack views
What about OS X?
Summary
6. Custom Controls
Introducing Custom Controls
The basics
Starting an example project
Creating a framework
Creating a class
Properties
IBDesignable and IBInspectable
Advanced drawing with CALayer
Debugging Custom Controls
Summary
7. Debugging
Breakpoints
Listing breakpoints
The debug area
The variables view
The console area
The debug navigator
Quick Look
Debugging the view hierarchy
Dealing with crashes
Summary
8. Testing Your Code
Test-diven development
Testing in Xcode
The test navigator
Test classes
Test methods
A simple calculator example
Assertions
Writing our first real functional unit test
Performance tests
UI tests
Running tests and collecting results
Code coverage
Summary
9. Sideloading, Optimizing, and Submitting Your App
iOS simulators
Simulating different devices
Simulator limitations
Sideloading
Getting an Apple ID
Using an Apple ID with Xcode
Registering a device
The last steps
Optimizing your app
App thinning
Slicing
Bytecode
On-demand resources
Submitting your app to the App Store
iTunes Connect
Uploading a build
Submitting your app for review
App review
App rejection
Approval — ready for sale
Summary
A. Everything Else
TestFlight
Beta App review?
Submitting your app
Installing TestFlight builds
Submitting for final sale
Crash logs
Storyboard references
Creating a new Storyboard
Refactoring existing views
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Table of Contents
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset