iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.1

Posted: 2009-06-05

Build Requirements: Xcode 3.1 or later, Mac OS X v10.5.7 or later, iPhone OS v3.0.

Runtime Requirements: Mac OS X v10.5.7 or later, iPhone OS v3.0.

View Source Code:

Download Sample Code (“ScrollViewSuite.zip”, 69.05M)



Description

A series of examples that illustrate how to use UIScrollView.

1_TapToZoom demonstrates:

* Fitting the image to the screen on launch

* Detecting single, double, and two-finger taps

* Zooming in response to taps

2_Autoscroll adds a thumbnail scroll view, and demonstrates:

* Use of the canCancelContentTouches property to track moving touches in a subview of a scroll view

* How to implement autoscrolling in response to a subview being dragged

3_Tiling demonstrates:

* How to subclass UIScrollView to add content tiling

* Reusing tiles to optimize performance and memory use

* Changing the resolution of the content in response to zooming

Document Revision History

Date Notes
2009-06-05Updated artwork.
2009-06-03A series of examples that illustrate how to use UIScrollView.
Did this document help you? Yes It's good, but... Not helpful...