• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How a subview can inform to the controler that an event has happened?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How a subview can inform to the controler that an event has happened? (From: Agha Khan <email@hidden>)

  • Prev by Date: How a subview can inform to the controler that an event has happened?
  • Next by Date: Re: Debugging NSService
  • Previous by thread: How a subview can inform to the controler that an event has happened?
  • Next by thread: Re: Debugging NSService
  • Index(es):
    • Date
    • Thread