WHAT DO YOU KNOW ABOUT ‘RESPONDER CHAIN’?

naomi burke

Total Post:6

Points:30
Posted by  naomi burke
 803  View(s)
Ratings:
Rate this:
  1. naomi burke

    Post:6

    Points:30
    What do you know about ‘responder chain’?

    Suppose you have a hierarchy of views such like there is superview A which have subview B and B has a subview C. Now you touch on inner most view C. The system will send touch event to subview C for handling this event. If C View does not want to handle this event, this event will be passed to its superview B (next responder). If B also does not want to handle this touch event it will pass on to superview A. All the view which can respond to touch events are called responder chain. A view can also pass its events to uiviewcontroller. If view controller also does not want to respond to touch event, it is passed to application object which discards this event.

      Modified On Mar-18-2016 11:08:03 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!