Home > DeveloperSection > Interviews > What do you know about ‘responder chain’?

Posted on    September-04-2015 12:02 AM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  549  View(s)
Rate this:

naomi burke
naomi burke

Total Post:6

Points:30
Posted on    September-04-2015 12:02 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick