Safari Reference Library Apple Developer
Search

TouchList Class Reference

Availability
Available in iPhone OS 2.0 and later.
Companion guide

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 iPhone OS 2.0 and later.



Last updated: 2010-02-24

Did this document help you? Yes It's good, but... Not helpful...