Programming iOS 8

Dive Deep into Views, View Controllers, and Frameworks

Publisher: O’Reilly Media
Final Release Date: November 2014
Pages: 1018
Dive Deep into Views, View Controllers, and Frameworks

Start building apps for iOS 8 with Apple’s Swift programming language. If you’re grounded in the basics of Xcode and the Cocoa framework, this book provides a structured explanation of all essential real-world iOS app components. Through deep exploration and copious code examples, you’ll learn how to create views, manipulate view controllers, and use iOS frameworks for adding features such as audio and video, access to user calendars and photos, and tracking the device’s location.

Example code is available on GitHub in the form of full projects that you can download, study, and run.

  • Build iOS apps with Swift
  • Create, arrange, draw, layer, and animate views that respond to touch
  • Use view controllers to manage multiple screens in a way that’s understandable to users
  • Explore UIKit interface objects, such as scroll views, table views, popovers, web views, and maps
  • Work with Cocoa frameworks for sensors, location, sound, and video
  • Access user libraries: music, photos, address book, and calendar
  • Examine additional topics including data storage, file sharing, networking, and threading

Topics new to iOS 8 include:

  • Major changes in app coordinate space and interface rotation
  • Trait collections and size classes
  • View margins, visual effect views, and major animation changes
  • Changes to presented view controllers, popovers and split view controllers, alert and action sheet architecture
  • Table view automatic variable row heights and sliding cells
  • Classes for search results display, web view, video display, and audio mixing and effects
  • Today extensions, Actions extensions, Photo Editing extensions
  • Xcode 6 features: conditional constraints, view debugging, designable views, inspectable properties, new segue types

Table of Contents

Views

  1. Chapter 1 Views
    • The Window
    • Experimenting With Views
    • Subview and Superview
    • Visibility and Opacity
    • Frame
    • Bounds and Center
    • Window Coordinates and Screen Coordinates
    • Transform
    • Trait Collections and Size Classes
    • Layout
  2. Chapter 2 Drawing
    • UIImage
    • UIImageView
    • Graphics Contexts
    • UIImage Drawing
    • CGImage Drawing
    • Snapshots
    • CIFilter and CIImage
    • Blur and Vibrancy Views
    • Drawing a UIView
    • Graphics Context Settings
    • Paths and Shapes
    • Clipping
    • Gradients
    • Colors and Patterns
    • Graphics Context Transforms
    • Shadows
    • Erasing
    • Points and Pixels
    • Content Mode
  3. Chapter 3 Layers
    • View and Layer
    • Layers and Sublayers
    • Drawing in a Layer
    • Transforms
    • Shadows, Borders, and Masks
    • Layer Efficiency
    • Layers and Key–Value Coding
  4. Chapter 4 Animation
    • Drawing, Animation, and Threading
    • UIImageView and UIImage Animation
    • View Animation
    • Implicit Layer Animation
    • Core Animation
    • Actions
    • Emitter Layers
    • CIFilter Transitions
    • UIKit Dynamics
    • Motion Effects
    • Animation and Autolayout
  5. Chapter 5 Touches
    • Touch Events and Views
    • Receiving Touches
    • Restricting Touches
    • Interpreting Touches
    • Gesture Recognizers
    • Touch Delivery

Interface

  1. Chapter 6 View Controllers
    • View Controller Responsibilities
    • View Controller Hierarchy
    • View Controller Creation
    • How a View Controller Gets Its View
    • View Resizing
    • Presented View Controller
    • Tab Bar Controller
    • Navigation Controller
    • Custom Transition
    • Page View Controller
    • Container View Controllers
    • Storyboards
    • View Controller Lifetime Events
    • View Controller Memory Management
    • State Restoration
  2. Chapter 7 Scroll Views
    • Creating a Scroll View in Code
    • Scroll View in a Nib
    • Scrolling
    • Zooming
    • Scroll View Delegate
    • Scroll View Touches
    • Floating Scroll View Subviews
    • Scroll View Performance
  3. Chapter 8 Table Views and Collection Views
    • Table View Cells
    • Table View Data
    • Table View Cell Selection
    • Table View Scrolling and Layout
    • Table View State Restoration
    • Table View Searching
    • Table View Editing
    • Table View Menus
    • Collection Views
  4. Chapter 9 Popovers and Split Views
    • Popovers
    • Split Views
  5. Chapter 10 Text
    • Fonts and Font Descriptors
    • Attributed Strings
    • Labels
    • Text Fields
    • Text Views
    • Text Kit
  6. Chapter 11 Web Views
    • WKWebView
    • UIWebView
    • Developing Web View Content
  7. Chapter 12 Controls and Other Views
    • UIActivityIndicatorView
    • UIProgressView
    • UIPickerView
    • UISearchBar
    • UIControl
    • Bars
    • Tint Color
    • Appearance Proxy
  8. Chapter 13 Modal Dialogs
    • Alerts and Action Sheets
    • Local Notifications
    • Activity Views

Some Frameworks

  1. Chapter 14 Audio
    • System Sounds
    • Audio Session
    • Audio Player
    • Remote Control of Your Sound
    • Playing Sound in the Background
    • AVAudioEngine
    • Speech Synthesis
    • Further Topics in Sound
  2. Chapter 15 Video
    • AVPlayerViewController
    • Introducing AV Foundation
    • UIVideoEditorController
  3. Chapter 16 Music Library
    • Exploring the Music Library
    • Music Player
    • MPVolumeView
    • Playing Songs With AV Foundation
    • Media Picker
  4. Chapter 17 Photo Library and Image Capture
    • Photo Library Authorization
    • Choosing From the Photo Library
    • Photos Framework
    • Using the Camera
  5. Chapter 18 Address Book
    • Address Book Database
    • Address Book Interface
  6. Chapter 19 Calendar
    • Calendar Database
    • Calendar Interface
  7. Chapter 20 Mail and Messages
    • Mail Message
    • Text Message
    • Twitter Post
  8. Chapter 21 Maps
    • Displaying a Map
    • Annotations
    • Overlays
    • Map Kit and Current Location
    • Communicating With the Maps App
    • Geocoding, Searching, and Directions
  9. Chapter 22 Sensors
    • Core Location
    • Acceleration and Attitude

Final Topics

  1. Chapter 23 Persistent Storage
    • The Sandbox
    • User Defaults
    • Simple Sharing and Previewing of Files
    • Document Architecture
    • iCloud
    • XML
    • SQLite
    • Core Data
    • Image File Formats
  2. Chapter 24 Basic Networking
    • HTTP Requests
    • Background App Refresh
    • In-App Purchases
    • Bonjour
  3. Chapter 25 Threads
    • Main Thread
    • Why Threading Is Hard
    • Blocking the Main Thread
    • NSOperation
    • Grand Central Dispatch
    • Threads and App Backgrounding
  4. Chapter 26 Undo
    • Undo Manager
    • Undo Interface
    • Appendix Application Lifetime Events
    • Appendix Some Useful Utility Functions
    • Delayed Performance
    • Center of a CGRect
    • Adjust a CGSize
    • Dictionary of Views
    • Constraint Issues
    • Drawing Into an Image Context
    • Finite Repetition of an Animation
    • Remove Multiple Indexes From Array
    • Configure a Value Class At the Point of Use
    • Cancelable Closure-Based Timer
    • Generic Wrapper
Advertisements

One thought on “Programming iOS 8

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s