TouchList Class Reference

Companion guide
Availability
Available in iOS 2.0 and later.

Overview

The TouchList class is used to represent a collection of Touch objects. For example, the changedTouches method in TouchEvent returns a TouchList object.

Tasks

Accessing Properties

Getting Touch Objects

Properties

length

The number of Touch objects in this TouchList object.

readonly attribute unsigned long length
Availability

Methods

item

Returns the Touch object at the given index.

Touch item (in unsigned long index);
Parameters
index

The index of the item to return.

Availability
  • Available in iOS 2.0 and later.