title: UIBarButtonItem sent action works on iOS 6 but not iOS 5
body: <p>I am going to tear my hair out because I cannot think of a logical reason why this occurs on 5 but not 6.  So basically, I have a view presented in modal fashion with a navigation bar and a Cancel button (<code>UIBarButtonItem</code> - no custom anything on it, just a standard button) in the navigation bar. When this Cancel button is tapped, I want the modal view to disappear. This works just fine in iOS 6. But for iOS 5 it refuses to work for 2 out of 3 places I have it in my code. What's odd to me is that it works on one but not the other two.</p>
  
  <p>Using storyboards, I right click the button, click on "selector" under Sent Actions, and drag over to the appropriate <code>IBAction</code> method in my view controller's .h file. The link is successfully confirmed with the little blinking animation in Xcode. When I run the app on iOS 6 (simulator or device doesn't matter), the method is successfully executed upon button tap and my modal view dismissed. However, on iOS 5, the method is never even called (I set breakpoints inside the method to see if they would be hit). I've even tried switching the argument in my <code>IBAction</code> method from <code>id</code> to <code>UIBarButtonItem *</code>. No cigar, though.</p>
  
  <p>I've also tried programmatically (in <code>viewDidLoad</code>) setting the cancel button's action to a selector. I've even set the target to the VC. No cigar again.  Here is a screenshots of my current setup:</p>
  
  <p><a href="https://i.imgur.com/3lVsM.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/3lVsM.png" alt="Please note the IBAction methods"></a></p>
  
  <p>Please note the <code>IBAction</code> methods.</p>
  
  <p>Is there some magical clause in the documentation that I missed? Something awfully special I need to do in order to get it to work in iOS 5? It sure seems like a bug to me, but I'm still fairly new to this stuff so what do I know.</p>
  
  <p>I am using Xcode 4.5.2 and storyboards, and targeting iOS 5 and iOS 6 for the release.</p>
  
  <p>Your help is appreciated, thank you.</p>