Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Ahmed Bakir
Beginning iOS Media App Development
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Welcome to iOS Media App Development
What Is the Purpose of This Book?
What Makes Media App Development Different?
What Do I Need to Know to Use This Book?
What Do I Need to Get Started?
An Active iOS Developer Program Account Is Required to Use This Book
Building Your First iOS Media App
About the Application
Setting Up the Application
Adding Images to Your App
Handling User-Interface Events
Running the Application on a Device
Debugging Common Problems
Summary
Part 1: Images
Chapter 2: Adding Images to Your App
Using the UIImage Class to Represent Image Data
Loading Bundled Files
Using Asset Catalogs To Manage Images
Loading Images at Runtime
Using the UIImageView Class to Display Images
Initializing an Image View
Setting Image-Scaling Options
Using the UIImagePickerController Class to Select Images
Working with Protocols and Delegates
Using the Image Picker to Access Saved Pictures
Using the Image Picker to Take Pictures
Understanding User Interface Limitations of the Image Picker
Presenting the Photo Album on an iPad
Summary
Chapter 3: Doing Useful Things with Your Images
Manipulating Images
Resizing an Image
Cropping an Image
Saving Images
Saving Images to Files
Saving Images to the Photo Library
Loading Images from the Internet
Adding an Activity Indicator
Adding Effects to Your Images
Adding Gradients
Making Your Images Move with Your Device
Adding Blurring to Your Images
Summary
Chapter 4: Advanced Photo Interfaces
Building a Custom Camera Interface
Initializing the Hardware Interface
Accessing the Live Camera Feed
Capturing a Still Image
Accessing Hardware Controls
Building a Custom Image Picker
Instantiating an Asset Library as a Data Source
Using the UICollectionView Class to Enumerate Assets
Enabling Multiple Selection
Creating an Interface for Returning Image Data
Summary
Part 2: Audio
Chapter 5: Playing and Recording Audio Files
Playing Audio Files
Getting Started
Configuring an Audio Session
Selecting an Audio File
Setting Up the Audio Player
Building a Playback Interface
Recording Audio Files
Getting Started
Configuring the Audio Session
Setting Up the Audio Recorder
Building the Recording Interface
Summary
Chapter 6: Using External Audio Sources
Importing Music from iTunes
Getting Started
Initializing the Music Player
Specifying a Media Queue (Playlist)
Creating an Item Selection Interface
Building a Playback Interface
Displaying Song Information (Metadata)
Streaming Music
Getting Started
Connecting to a Stream
Playing Streaming Audio
Playing Event Sounds (Including Vibration)
Getting Started
Creating a System Sound
Playing a System Sound
Making the Device Vibrate
Summary
Chapter 7: Advanced Audio Topics
Backgrounding Audio
Setting Background Modes
Selecting a Compatible Session Type
Using the Now Playing Center
Displaying Metadata
Enabling Playback Controls (Remote Controls)
Building a More Robust Audio Session
Handling Audio Interruptions
Handling Hardware (Route) Changes
Using AirPlay
Summary
Part 3: Video
Chapter 8: Playing and Recording Video
Playing Video Files
Getting Started
Initializing the Video Player
Adding Notification Handling to Your Class
Configuring the Video Player
Starting Playback
Recording Video Files
Getting Started
Configuring the Image Picker for Video
Saving Video Recordings
Summary
Chapter 9: Building a Custom Video-Playback Interface
Getting Started
Building the User Interface
Using the AVPlayer Class for Media Playback
Creating MediaPlayer-like Notifications
Building Playback Controls
Toggling Playback
Skipping Forward/Backward
Using the Playback Scrubber
Dismissing the Playback Interface
Adding User-Interface Updates
Updating Playback Progress
Automatically Hiding the Playback Controls
Summary
Chapter 10: Building a Custom Video-Recording Interface
Getting Started
Setting Up the Hardware Interface
Building the User Interface
Setting Up the Video Layer
Adding Controls for Capture Settings
Starting/Stopping Recording
Completing a Recording
Saving Video Output
Showing the Preview Interface
Modifying Your Protocol for Video
Summary
Part 4: iOS8 and Beyond
Chapter 11: User Interface Development with Xcode 6
Using Size Classes to Build Adaptive User Interfaces
Using Quick Look for Runtime Previews
Adding Interface Builder Previews to Your Classes
Using Interface Builder to Debug Your Views
Summary
Chapter 12: Using the AVKit Framework for Media Playback
Getting Started
Using the AVPlayer Class to Play a Media File
Presenting the AVPlayerViewController
Using the AVQueuePlayer Class to Play a Playlist
Working with Media Playback Events
Loading Complete Event
Playback Complete Event
Error Handling
Adding an Overlay View (Watermark)
Summary
Chapter 13: Tracking Fitness with HealthKit and Core Motion
Getting Started
Using Core Motion to Track Activity
Requesting Motion Activity Permission
Starting a Workout
Integrating Background Updates
Stopping a Workout
Using HealthKit to Sync Data
Requesting Permission to Use HealthKit
Retrieving Data from HealthKit
Getting Real-Time Updates
Logging an Activity
Summary
Chapter 14: Getting Started with Swift
Getting Started
Creating a New Project
Importing Objective-C Classes into Your Project
Building a Storyboard
Basic Swift Syntax
Calling Methods (Hello World)
Defining Variables
Instantiating Objects
Accessing Properties and Methods (Including Objective-C)
Casting
Using String Formatters
Using Arrays
Using Conditional Logic
Using Loops
Defining Methods
Calling Enumerated Types
Using Unusual Punctuation (Question Mark and Exclamation Mark Operators)
Building a Class
Connecting Items to Interface Builder
Adding Delegate Support
Adding Key-Value Observer Support
Adding Notification Support
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
Title
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