Re: How a subview can inform to the controler that an event has happened?
Re: How a subview can inform to the controler that an event has happened?
- Subject: Re: How a subview can inform to the controler that an event has happened?
- From: WT <email@hidden>
- Date: Thu, 2 Jul 2009 22:34:11 +0200
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 (email@hidden)
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:
This email sent to email@hidden