title: Catching Button Events from Different ViewControllers
body: <p><strong>My Setup</strong></p>
  
  <p>I have a <code>ViewController</code>, where users type some sort of text in there. Call it <code>InputViewController</code>.</p>
  
  <p>I have a <code>UIView</code> (in a separate class), where I draw a navigation bar that has a gradient (I override <code>drawRect</code> for Core Graphics, hence I need to to have in a separate class) which has a button. The button takes you to a <code>MapViewController</code>, which allows you to add a location tag to your input. Once a location tag is added, I would like to change the button's image.</p>
  
  <p><strong>My Problem</strong></p>
  
  <p>Once the button is tapped, I need to send the user's input to the <code>MapViewController</code>, where a delegate is also implemented and will pass back some information back to the <code>InputViewController</code>. The issue here is that the button resides in the separate <code>UIView</code>. One way to do this is pass the <code>UIView</code> the information once they are set, which in turn would be passed to the <code>MapViewController</code> once the button is tapped. The problem here would be the delegate as the delegate needs to return to the <code>InputViewController</code> and not the `UIView.</p>
  
  <p>I was wondering if its possible to move the <code>UIView</code> into the <code>InputViewController</code>, including the <code>drawRect</code> method for that view. If so, how can I do that? If not, what are other ways/suggestions I can do to have the above set up?</p>