Touch and Motion Events for iOS

This course is an introduction to touch and motion events for iOS. Create new user experiences for your users by learning to use touch and motion events.
Course info
Rating
(17)
Level
Intermediate
Updated
Mar 24, 2015
Duration
4h 38m
Table of contents
Introduction and Overview
Hit Testing and the Responder Chain
Touch Events
Gesture Recognizers
Custom Gesture Recognizers
Advanced Touch Events
Motion Events
Description
Course info
Rating
(17)
Level
Intermediate
Updated
Mar 24, 2015
Duration
4h 38m
Description

This course is an introduction to touch and motion events in iOS. This course will give you a detailed overview of how touch and motion events are delivered through the system. We will go through implementing touch handlers, and utilizing gesture recognizers to create various gestures so your users can interact with the content on the screen in various and intuitive ways. We will discuss advanced techniques such as handling multi-touch events and transitioning to/from gestures and animations. Finally, we will utilize motion events and look at Core Motion to get raw data from the accelerometer and gyroscope to use in our apps.

About the author
About the author

James Wilson is a Mobile Developer that specializes in iOS. He comes from a background in .NET, but spends the majority of his time in Objective-C, Swift, and iOS.

More from the author
Google Cloud Functions Fundamentals
Intermediate
4h 52m
28 Aug 2018
Google Cloud Functions: Getting Started
Beginner
2h 27m
20 Dec 2017
More courses by James Wilson
Section Introduction Transcripts
Section Introduction Transcripts

Introduction and Overview
Hi. My name is James Wilson, and welcome to the course, Touch and Motion Events for iOS. Mobile devices have ushered in a new era in computing. A mouse and keyboard are no longer the only way we interact with our software. Capacitive touchscreens and sensors such as accelerometers and gyroscopes give us a chance to create new experiences for our users. This course will show you how to move beyond the simple button click and allow you to bring truly interactive user experiences to your users.

Hit Testing and the Responder Chain
Hi. My name is James Wilson, and welcome to the module, Hit Testing and the Responder Chain, for the course Touch and Motion Event Handling for iOS. Hit testing and the responder chain are the fundamental blocks in which events are delivered throughout the system. This module will lay the foundation for understanding event delivery in iOS. In this module we are going to go over the following topics. First, we will cover two of the most basic objects for event handling, and that is UITouch and UIEvent. Afterwards, we'll dive into hit testing. This will include a short demo, which illustrates the complete hit testing path in an iOS app. Then we will go over responder objects such as UIViewController and UIView. These are familiar objects to any iOS developer, and they participate in the final topic of this module, which is the responder chain. IOS uses a responder chain to try to find an object that will handle the events. Finally, we will go back to our demo app and see how hit testing and the responder chain tie together.

Touch Events
Hi, my name is James Wilson. In this module we are going to discuss Touch Events. In the previous module, we went over the importance of hit testing and of responder chain. Once a responder chain finds a responder object, touch events will be executed. In this module, we are going to go over UIResponder's touch events. We're then going to go back to our demo and see hit testing, the responder chain, and these touch events work through a complete touch cycle. Then, we're going to dive into some gotchas with disabling touch events. And I say gotchas because you'll find that touch events can be disabled in various ways, and some of these are set by default on certain elements of UIKit, so they're very important to know, and we're going to go over them in detail so you can effectively troubleshoot your touch handling events. Finally, we're going to start a new demo app where we're going to take everything we've learned and start to build an app that has custom gestures and touch handling, so let's get started.