title: Xcode: how to set delegates for subviews created using Storyboard?
body: <p>here is my problem.</p>
  
  <p>I have a viewcontroller in which I create 2 views using UIView(top view and bottom view) and each view has a button.
  I generate the Top view programatically along with the button, and set the delegate. The top view works -- when the click the button, I see the NSLog "button clicked" in the delegate in viewcontroller.</p>
  
  <p>I've created teh bottom view using Storyboard so that I can see the view and the button placement visually. This doesnt work. I dont see the button click log either in the the button click method associated with the view before it hands over to the delegate defined in the view controller.  </p>
  
  <p>How do I set delegates for buttons and other objects created in subviews using Storyboard?</p>