On Jul 2, 2009, at 9:40 PM, Agha Khan wrote:

I am looking the sample Dragging views (The iPhone Developer's Cookbook) where the are N subviews (flowers) are floating inside UIViewController.

The subviews are not "floating inside" the view controller. Views are subviews only to other views, forming what is called the View Hierarchy. The view controllers are not part of the view hierarchy.

how subview can inform to UIViewController that the dragging (an event) has finished?

Implement the method

- (void) touchesEnded: (NSSet*) touches withEvent: (UIEvent*) event

in the view's view controller. The view controller participates in the Responder Chain and touch events that are not consumed by the view are passed to the view's view controller for processing.

Wagner
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to