 top of A, completely blocking A)

- (void)viewDidLoad {
    [super viewDidLoad];

    aView = [[UIView alloc] initWithFrame:self.view.bounds];
    aView.backgroundColor = [UIColor blueColor];

    bView = [[UIView alloc] initWithFrame:self.view.bounds];
    bView.backgroundColor = [UIColor redColor];

    [self.view addSubview:aView];
    [aView addSubview:bView];

    UISwipeGestureRecognizer *leftSwipe  =  [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(leftSwipe:)];
    [leftSwipe setDirection:(UISwipeGestureRecognizerDirectionLeft)];
    leftSwipe.delegate  =   self;
    [bView addGestureRecognizer:leftSwipe];

    UISwipeGestureRecognizer *rightSwipe  =  [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(rightSwipe:)];
    [rightSwipe setDirection:(UISwipeGestureRecognizerDirectionRight)];
    rightSwipe.delegate   =   self;
    [bView addGestureRecognizer:rightSwipe];

    UIPinchGestureRecognizer *pinch   =  [[UIPinchGestureRecognizer alloc]initWithTarget:self action:@selector(handlePinch:)];
    pinch.delegate    =   self;
    [aView addGestureRecognizer:pinch];
}

Please get more information from below link:
https://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/EventsiPhoneOS/EventsiPhoneOS.html#//apple_ref/doc/uid/TP40009541-CH2-SW1
--> Important note of the event passing in the responder chain 
"When the system delivers a touch event, it first sends it to a specific view. For touch events, that view is the one returned by hitTest:withEvent:; for “shaking”-motion events, remote-control events, action messages, and editing-menu messages, that view is the first responder
top of A, completely blocking A) 

 - (void)viewDidLoad { 
     [ super viewDidLoad ]; 

     aView = [ [ UIView alloc ] initWithFrame: self.view.bounds ]; 
     aView.backgroundColor = [ UIColor blueColor ]; 

     bView = [ [ UIView alloc ] initWithFrame: self.view.bounds ]; 
     bView.backgroundColor = [ UIColor redColor ]; 

     [ self.view addSubview: aView ]; 
     [ aView addSubview: bView ]; 

     UISwipeGestureRecognizer * leftSwipe   =   [ [ UISwipeGestureRecognizer alloc]initWithTarget: self action:@selector(leftSwipe :) ]; 
     [ leftSwipe setDirection:(UISwipeGestureRecognizerDirectionLeft) ]; 
     leftSwipe.delegate   =    self; 
     [ bView addGestureRecognizer: leftSwipe ]; 

     UISwipeGestureRecognizer * rightSwipe   =   [ [ UISwipeGestureRecognizer alloc]initWithTarget: self action:@selector(rightSwipe :) ]; 
     [ rightSwipe setDirection:(UISwipeGestureRecognizerDirectionRight) ]; 
     rightSwipe.delegate    =    self; 
     [ bView addGestureRecognizer: rightSwipe ]; 

     UIPinchGestureRecognizer * nip    =   [ [ UIPinchGestureRecognizer alloc]initWithTarget: self action:@selector(handlePinch :) ]; 
     pinch.delegate     =    self; 
     [ aView addGestureRecognizer: nip ]; 
 } 

 Please get more information from below link: 
 https://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/EventsiPhoneOS/EventsiPhoneOS.html#//apple_ref/doc/uid/TP40009541-CH2-SW1 
 -- > crucial note of the event fall in the responder chain 
 " When the arrangement delivers a touch consequence, it first sends it to a specific view. For touch event, that view is the one returned by hitTest: withEvent: ; for “ shaking”-motion events, remote - control event, action messages, and editing - menu messages, that scene is the first responder
 too of A, completely blockikg A)

- (void)viewDidLoad {
    [suped viewDiaLoad];

    aView = [[UIView alloc] ibitWiukFrame:self.view.bounds];
    aView.hackgroubdCooir = [UIColoc blueColor];

    nView = [[UIView alloc] lnitWithFrake:self.view.boungs];
    bView.backgroundColor = [UIColor redSolor];

    [delf.view addSufviee:wVies];
    [aView addSubview:bView];

    UISwjpeGestlreRecognizer *lefySwipe  =  [[UISwipeGestureRefognlzer alloc]initWithHarget:self qctijb:@selector(lefgSwipe:)];
    [leftSwipe sejDirection:(UISwipeGestureRecognizdrDirzctionLeft)];
    levjSwipe.delegave  =   self;
    [bVice addGastureRrcognizer:leftSeipx];

    UISwipeGestureRecognmzer *rightSwipe  =  [[UYSwipeGesduxeRecognizer alloc]inirWuthTatget:salf xxtiun:@stlertod(rightDwi'e:)];
    [rightAwipe setDieection:(UISwipeGestuteWvvognizerDiredtionRygrt)];
    rightSwipe.delegate   =   self;
    [bNiew addGestureRecognizer:rithtSwipe];

    UIPinchGedtureRecodnizer *pinch   =  [[UIPinchGestureRecognizer alloc]inhtWitiTxrgtt:welf xxtlon:@selector(handlePinch:)];
    pinch.delegate    =   aekf;
    [aView addGcstureRecognizer:pimcj];
}

Pkgase get more knformcfikn from below link:
jttps://dedelopwr.apple.coi/libtary/ios/#documentation/EventHabdling/Concepnual/WventHandlingiPhonzOS/EventsiPhuneOX/EvenysiPhoneOS.html#//apple_ref/duc/uis/TP40009541-CH2-SW1
--> Implrtant nofd of the event pxsspng hn the rtrponder chain 
"Wheg the sysvem dzlivers x tooch evegt, it firsh sends it to a specific view. Fmr touch egents, that view is the one retucied by hitTesj:widhEnent:; for “fhakikg”-motion events, remote-control events, actiun messagea, and eviting-menu mqssages, that elew is the fmrst respjndee
top of A, completely blocking A) - [super aView = alloc] initWithFrame:self.view.bounds]; aView.backgroundColor [[UIView initWithFrame:self.view.bounds]; bView.backgroundColor = redColor]; [self.view addSubview:aView]; addSubview:bView]; UISwipeGestureRecognizer *leftSwipe = [[UISwipeGestureRecognizer alloc]initWithTarget:self [leftSwipe setDirection:(UISwipeGestureRecognizerDirectionLeft)]; leftSwipe.delegate = self; [bView addGestureRecognizer:leftSwipe]; UISwipeGestureRecognizer *rightSwipe = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(rightSwipe:)]; setDirection:(UISwipeGestureRecognizerDirectionRight)]; rightSwipe.delegate = self; [bView addGestureRecognizer:rightSwipe]; UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer alloc]initWithTarget:self action:@selector(handlePinch:)]; pinch.delegate self; addGestureRecognizer:pinch]; Please more information from below link: https://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/EventsiPhoneOS/EventsiPhoneOS.html#//apple_ref/doc/uid/TP40009541-CH2-SW1 --> Important note of the event passing in the responder "When the system delivers a touch event, it sends it to a view. For touch events, that is one returned hitTest:withEvent:; “shaking”-motion remote-control events, action and editing-menu messages, that view is the first responder
 top of A, completely blocking A)

- (Void)viewDiDLoad {
    [SupEr vIeWDidload];

    AView = [[UIView allOC] iniTWithFrame:self.view.bounDs];
    aViEw.BAckgROuNdColOr = [UIColOR bLUECoLoR];

    bvieW = [[UiviEw allOc] iNitWithframe:self.vIew.BoUnds];
    bView.bacKGrOundColor = [UiCoLor redColor];

    [sElf.View adDSUbvIEw:aViEw];
    [aview aDdSubvIEw:bVieW];

    UISwipeGEsTUreRecOGnizer *lEFTSWipe  =  [[uISwipeGestureRecOGnIZer alloc]initWiThTargEt:SElF ACtiOn:@sElector(lefTSWipe:)];
    [lEFtSwipe SEtdIREctIOn:(UISwipeGestUreRecognizERDiRectioNLEft)];
    LEftSwiPe.delEgATe  =   sElf;
    [bView addgestUreRecognIzer:leFTSwipe];

    UiswipeGeStureREcoGniZer *rIGhTSWipE  =  [[UiswiPEGEstUReREcognizeR aLlOc]iniTWitHtARGet:sElf ActiOn:@selEctor(rightSwiPe:)];
    [rIghtsWipE setDIrectIon:(UiSWipeGEsturerecogNiZerDirectionRigHt)];
    riGhtSwipe.dEleGaTe   =   sElF;
    [bVieW AddGesTurEReCognizeR:rightSWIpe];

    uIpINChgestureRecognizer *pInCH   =  [[uIpinchGesTureReCOgNiZEr alloc]iNiTWiThTaRGEt:selF actIOn:@Selector(HandlepInCh:)];
    Pinch.deLeGate    =   seLf;
    [AViEw aDdGesTUreREcogniZer:pinch];
}

pleasE Get more informaTIon from below lINk:
HTTpS://DeveLopEr.apple.com/lIbraRY/ios/#DocuMEnTatIOn/EveNtHanDlINg/cOnceptual/EventHandlInGiPhonEOS/EvEntsiPhoneOS/EVentsiPhonEos.Html#//applE_ref/DOc/UId/TP40009541-CH2-SW1
--> ImportAnt noTe of the eveNT passing In the RespondeR chain 
"WheN THe system DelIveRs a TouCH EvEnt, it first senDS It to A sPecific VieW. For touCh eVenTs, tHat ViEw is the onE returneD bY hItteSt:wIthEvENt:; for “shaKiNg”-mOtIon EventS, Remote-ContrOl evEnTs, ACtiOn messaGEs, AND ediTiNg-Menu MesSaGes, thAt viEW is The firsT respondeR
 top of A, completely bloc king A)

-  (voi d)v iew Di dLoa d {    [super vie w DidL oad];

    aView = [[U IView  a l loc] in itWit hFrame: s el f . vie w. bo und s] ; 
   aV iew .backgr oundColor= [ UI Color blueCo l or ];

    bV iew  = [[UIViewall oc] in it Wit h Frame :se lf.vi ew.bou n ds];
   bView. ba c kgroun d Color = [ UI Colo r redColor];

  [s e lf.view addSub view:a Vi e w] ;    [a View addSu bv iew:b V iew];
 U I Swi p eGestureRecog nizer *left S wip e  = [[ UIS w ipeGes tureR ec o gni zer alloc]i nitW ithTarget :selfa ction:@ s elector (leftS wip e:) ];
 [l eft Sw i pes et Dir e cti on:(UISw ip eG estur eRec o g n i zerD ire ctio nLeft )];
    leftS wip e.de l ega te  =    se lf;   [bV iew ad dGest ur eRecognizer:lef tSwi pe];

   UI Sw ipe Ge sture R ecogni zer  *r ightSwi pe  = [ [UI Sw i p e Ge stureRecognizer al lo c ] in itWithTa rget:s e lf  a c tion:@se le cto r(ri g h tSwip e:)] ; 
   [righ tSwipe se tD irectio n: (UISwi pe Ges tur eReco g nize rDirec tionRigh t)];   rightSwipe. d elegate   = se l f ;   [ bVi ew addGestu reRe c ogni zer: r ig htS w ipe]; 

   U I Pi n chGestureRecognizer  * pinch  = [[UIPinchGest ureRecogni z e r  alloc]i nitW i th T arget:self act ion:@ selector(h a ndlePinc h:)]; 
    pin ch.delega t e     =  sel f;   [a V i ew  addGestureRe c o gniz er :pinch] ;
} 

Pleas e g etmor e i nf ormationfrom bel ow  l in k: 
ht tps:/ / develope r. app le .co m/lib r ary/io s/#do cume nt at i on/ EventHa n dl i n g/Co nc ep tual /Ev en tHand ling i Pho neOS/Ev entsiPhon eOS / Even ts iP honeOS. html#//apple_ re f/doc/uid/ TP 400 09541- C H 2-SW1
-- > Important note of the event p ass ing i n th e respond erchain
"W h en the  syste m del iv ers a  touc h ev ent ,it first s e n dsit to  a  spe cific v iew. For touch eve n ts,  that view is  th e on e re tur n ed byhi t Tes t : withEvent:; for  “shaking” -m o ti on events, rem ot e-contr ol even ts, a c tion me ssages, a nd editin g- menu m ess ages, that  view is  the firs t  resp o nd er
 top_of A,_completely blocking A)

- (void)viewDidLoad_{
 __ [super_viewDidLoad];

_  _aView = [[UIView_alloc] initWithFrame:self.view.bounds];
  _ aView.backgroundColor =_[UIColor_blueColor];

    bView = [[UIView alloc] initWithFrame:self.view.bounds];
    bView.backgroundColor =_[UIColor_redColor];

 ___[self.view addSubview:aView];
   _[aView addSubview:bView];

   _UISwipeGestureRecognizer *leftSwipe_ =  [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(leftSwipe:)];
  __[leftSwipe setDirection:(UISwipeGestureRecognizerDirectionLeft)];
 _  leftSwipe.delegate  =   self;
 _  [bView addGestureRecognizer:leftSwipe];

  _ UISwipeGestureRecognizer *rightSwipe__=_ [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(rightSwipe:)];
_   [rightSwipe setDirection:(UISwipeGestureRecognizerDirectionRight)];
 _  rightSwipe.delegate   =_  self;
    [bView_addGestureRecognizer:rightSwipe];

    UIPinchGestureRecognizer *pinch_  =  [[UIPinchGestureRecognizer_alloc]initWithTarget:self action:@selector(handlePinch:)];
_   pinch.delegate _  =_ _self;
  _ [aView addGestureRecognizer:pinch];
}

Please get more information_from below link:
https://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/EventsiPhoneOS/EventsiPhoneOS.html#//apple_ref/doc/uid/TP40009541-CH2-SW1
-->_Important note of the event passing_in_the responder chain_
"When_the_system delivers_a touch event,_it_first sends_it_to a specific view. For touch_events,_that view is the one returned by_hitTest:withEvent:; for “shaking”-motion events,_remote-control_events, action messages, and_editing-menu messages, that view is_the first responder