Changes

Jump to: navigation, search

An iOS 7 UIKit Dynamics Tutorial

31 bytes removed, 17:05, 4 October 2013
Attaching a View to an Anchor Point
== Attaching a View to an Anchor Point ==
<google>ADSDAQBOX_FLOW</google>
So far in this tutorial we have added some behavior to the application but have not yet implemented any functionality that connects UIKit Dynamics to user interaction. In this section, however, the example will be modified such that an attachment is created between the blue box view and the point of contact of a touch on the screen. This anchor point will be continually updated as the user’s touch moves across the screen, thereby causing the blue box to follow the anchor point. The first step in this process is to declare within the UIKitDynamicsViewController.h file some instance variables within which to store both the current location of the anchor point and a reference to a UIAttachmentBehavior instance:

Navigation menu