iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 2.7

Posted: 2009-07-01

Build Requirements: Mac OS X 10.5.3, Xcode 3.1, iPhone OS 2.0

Runtime Requirements: Mac OS X 10.5.3, iPhone OS 2.0

View Source Code:

Download Sample Code (“MoveMe.zip”, 45.5K)



Description

This application illustrates simple drawing, touch handling, and animation using UIKit and Core Animation.

A touch inside a placard animates it in two ways: Its transform is changed such that it appears to pulse, and it is moved such that its center is directly under the touch.

A drag moves the placard so that it remains centered under the touch. When the touch ends, the placard is animated back to the center of the screen, and its original (identity) transform restored.

Document Revision History

Date Notes
2009-07-01Corrected a memory leak where a CGPath was not released.
2008-07-03First public release.
Did this document help you? Yes It's good, but... Not helpful...