Difference between revisions of "IOS 9 App Development Essentials"
From Techotopia
Line 353: | Line 353: | ||
#* [[Managing Files using the iOS 9 UIDocument Class|Implementing the loadFromContents Method]] | #* [[Managing Files using the iOS 9 UIDocument Class|Implementing the loadFromContents Method]] | ||
#* [[Managing Files using the iOS 9 UIDocument Class|Loading the Document at App Launch]] | #* [[Managing Files using the iOS 9 UIDocument Class|Loading the Document at App Launch]] | ||
− | #* [[Managing Files using the iOS 9 UIDocument Class|Saving Content to the Document]]<br><br> | + | #* [[Managing Files using the iOS 9 UIDocument Class|Saving Content to the Document]] |
+ | #* [[Managing Files using the iOS 9 UIDocument Class|Testing the Application]]<br><br> | ||
# [[Using iCloud Storage in an iOS 9 Application]] | # [[Using iCloud Storage in an iOS 9 Application]] | ||
− | |||
− |
Revision as of 21:04, 17 December 2015
Table of Contents
- Start Here
- Joining the Apple Developer Program
- Installing Xcode 7 and the iOS 9 SDK
- A Guided Tour of Xcode 7
- Starting Xcode 7
- Creating the iOS App User Interface
- Changing Component Properties
- Adding Objects to the User Interface
- Building and Running an iOS 9 App in Xcode 7
- Running the App on a Physical iOS Device
- Managing Devices and Simulators
- Dealing with Build Errors
- Monitoring Application Performance
- An Exploded View of the User Interface Layout Hierarchy
- An Introduction to Xcode 7 Playgrounds
- What is a Playground?
- Creating a New Playground
- A Basic Swift Playground Example
- Viewing Results
- Enabling the Timeline Slider
- Adding Rich Text Comments
- Working with Playground Pages
- Working with UIKit in Playgrounds
- Adding Resources to a Playground
- Working with Enhanced Live Views
- When to Use Playgrounds
- Swift 2 Data Types, Constants and Variables
- Using a Swift Playground
- Swift Data Types
- Integer Data Types
- Floating Point Data Types
- Bool Data Type
- Character Data Type
- String Data Type
- Special Characters/Escape Sequences
- Swift Variables
- Swift Constants
- Declaring Constants and Variables
- Type Annotations and Type Inference
- The Swift Tuple
- The Swift Optional Type
- Type Casting and Type Checking
- Swift 2 Operators and Expressions
- Expression Syntax in Swift
- The Basic Assignment Operator
- Swift Arithmetic Operators
- Compound Assignment Operators
- Increment and Decrement Operators
- Comparison Operators
- Boolean Logical Operators
- Range Operators
- The Ternary Operator
- Bitwise Operators
- Bitwise NOT
- Bitwise AND
- Bitwise OR
- Bitwise XOR
- Bitwise Left Shift
- Bitwise Right Shift
- Compound Bitwise Operators
- Swift 2 Flow Control
- The Swift 2 Switch Statement
- An Overview of Swift 2 Functions
- What is a Function?
- How to Declare a Swift Function
- Calling a Swift Function
- Declaring External Parameter Names
- Declaring Default Function Parameters
- Returning Multiple Results from a Function
- Variable Numbers of Function Parameters
- Parameters as Variables
- Working with In-Out Parameters
- Functions as Parameters
- Closure Expressions
- Closures in Swift
- The Basics of Object Oriented Programming in Swift 2
- An Introduction to Swift Subclassing and Extensions
- Working with Array and Dictionary Collections in Swift 2
- Mutable and Immutable Collections
- Swift Array Initialization
- Working with Arrays in Swift
- Array Item Count
- Accessing Array Items
- Appending Items to an Array
- Inserting and Deleting Array Items
- Array Iteration
- Creating Mixed Type Arrays
- Swift Dictionary Collections
- Swift Dictionary Initialization
- Dictionary Item Count
- Accessing and Updating Dictionary Items
- Adding and Removing Dictionary Entries
- Dictionary Iteration
- Understanding Error Handling in Swift 2
- Creating an Interactive iOS 9 App
- An Introduction to Auto Layout in iOS 9
- Working with iOS 9 Auto Layout Constraints in Interface Builder
- A Simple Example of Auto Layout in Action
- Enabling and Disabling Auto Layout in Interface Builder
- The Auto Layout Features of Interface Builder
- Suggested Constraints
- Visual Cues
- Highlighting Constraint Problems
- Viewing, Editing and Deleting Constraints
- Creating New Constraints in Interface Builder
- Adding Aspect Ratio Constraints
- Resolving Auto Layout Problems
- An iOS 9 Auto Layout Example
- Implementing iOS 9 Auto Layout Constraints in Code
- Implementing Cross-Hierarchy Auto Layout Constraints in iOS 9
- Understanding the iOS 9 Auto Layout Visual Format Language
- Using Size Classes to Design Adaptable Universal iOS 9 User Interfaces
- Understanding Size Classes
- Size Classes in Interface Builder
- Setting “Any” Defaults
- Working with Size Classes in Interface Builder
- A Universal User Interface Tutorial
- Designing the iPad Layout
- Adding Universal Image Assets
- Designing the iPhone Layout
- Adding a Size Class Specific Image File
- Removing Redundant Constraints
- Testing the Application
- Using Storyboards in Xcode 7
- Creating the Storyboard Example Project
- Accessing the Storyboard
- Adding Scenes to the Storyboard
- Configuring Storyboard Segues
- Configuring Storyboard Transitions
- Associating a View Controller with a Scene
- Passing Data Between Scenes
- Unwinding Storyboard Segues
- Triggering a Storyboard Segue Programmatically
- Organizing Scenes over Multiple Xcode Storyboard Files
- Using Xcode 7 Storyboards to Create an iOS 9 Tab Bar Application
- An Overview of the Tab Bar
- Understanding View Controllers in a Multiview Application
- Setting up the Tab Bar Example Application
- Reviewing the Project Files
- Adding the View Controllers for the Content Views
- Adding the Tab Bar Controller to the Storyboard
- Designing the View Controller User interfaces
- Configuring the Tab Bar Items
- Building and Running the Application
- Working with the iOS 9 Stack View Class
- Introducing the UIStackView Class
- Understanding Subviews and Arranged Subviews
- StackView Configuration Options
- axis
- Distribution
- spacing
- alignment
- baseLineRelativeArrangement
- layoutMarginsRelativeArrangement
- Creating a Stack View in Code
- Adding Subviews to an Existing Stack View
- Hiding and Removing Subviews
- An iOS 9 Stack View Tutorial
- An iOS 9 Split View Master-Detail Example
- An Overview of Split View and Popovers
- About the Example Split View Project
- Creating the Project
- Reviewing the Project
- Configuring Master View Items
- Configuring the Detail View Controller
- Connecting Master Selections to the Detail View
- Modifying the DetailViewController Class
- Testing the Application
- A Guide to Multitasking in iOS 9
- Using iPad Multitasking
- Picture-In-Picture Multitasking
- iPad Devices with Multitasking Support
- Multitasking and Size Classes
- Multitasking and the Master-Detail Split View
- Handling Multitasking in Code
- willTransitionToTraitCollection(_:withTransitionCoordinator:)
- viewWillTransitionToSize(_:withTransitionCoordinator:)
- traitCollectionDidChange(_:)
- Lifecycle Method Calls
- Enabling Multitasking Support
- Opting Out of Multitasking
- An iOS 9 Multitasking Example
- Implementing a Page based iOS 9 Application with UIPageViewController
- An Example iOS 9 UIPageViewController Application
- Working with Directories in Swift on iOS 9
- The Application Documents Directory
- The NSFileManager, NSFileHandle and NSData Classes
- Understanding Pathnames in Swift
- Obtaining a Reference to the Default NSFileManager Object
- Identifying the Current Working Directory
- Identifying the Documents Directory
- Identifying the Temporary Directory
- Changing Directory
- Creating a New Directory
- Deleting a Directory
- Listing the Contents of a Directory
- Getting the Attributes of a File or Directory
- Working with Files in Swift on iOS 9
- Creating an NSFileManager Instance
- Checking for the Existence of a File
- Comparing the Contents of Two Files
- Checking if a File is Readable/Writable/Executable/Deletable
- Moving/Renaming a File
- Copying a File
- Removing a File
- Creating a Symbolic Link
- Reading and Writing Files with NSFileManager
- Working with Files using the NSFileHandle Class
- Creating an NSFileHandle Object
- NSFileHandle File Offsets and Seeking
- Reading Data from a File
- Writing Data to a File
- Truncating a File
- iOS 9 Directory Handling and File I/O in Swift – A Worked Example
- Preparing an iOS 9 App to use iCloud Storage
- Managing Files using the iOS 9 UIDocument Class
- An Overview of the UIDocument Class
- Subclassing the UIDocument Class
- Conflict Resolution and Document States
- The UIDocument Example Application
- Creating a UIDocument Subclass
- Designing the User Interface
- Implementing the Application Data Structure
- Implementing the contentsForType Method
- Implementing the loadFromContents Method
- Loading the Document at App Launch
- Saving Content to the Document
- Testing the Application
- Using iCloud Storage in an iOS 9 Application