title: ChildViewController - enable touch on parent, is it a good pattern?
body: <p>I want to divide code into some modules, so I've decided to create 3 <code>UIViewController</code>s. One is parent, two other are children. Parent has a view with map etc, both children have custom view with different subviews.</p>
  
  <p>In parent to present child I'm calling:</p>
  
  <pre><code>UIViewController *controller = [[MyViewController alloc] init];
  [self addChildViewController:controller];
  controller.view.frame = [[UIScreen mainScreen] bounds];
  [self.view addSubview:controller.view];
  [controller didMoveToParentViewController:self];
  </code></pre>
  
  <p>To dismiss a chile I'm using:</p>
  
  <pre><code>[controller willMoveToParentViewController:nil];
  [controller.view removeFromSuperview];
  [controller removeFromParentViewController];
  </code></pre>
  
  <p>And everything works great.. besides the fact, that parent view isn't receiving touches. Only children do receive touches. I'd like the parent to have this ability too.</p>
  
  <p>How to <strong>enable touches on parent</strong>..? (ofc userInteractionEnabled is YES but the child's view is stealing a touch)</p>
  
  <p>BTW: <strong>Is this design pattern a good concept</strong> or should I do it somehow else? Other approach with inheritance: <code>AViewController : UIViewController</code> (with map), <code>BViewController : AViewController</code> and <code>CViewController : AViewController</code>- when I change from <code>BViewController</code> to <code>CViewController</code> I can see the map reload, and I don't want such behaviour.</p>