IBActions to the First Responder are broken with Storyboards
| Originator: | nicolas.bouilleaud | ||
| Number: | rdar://12415978 | Date Originated: | 2012/10/02 |
| Status: | Duplicate/12395544/Closed | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
In Xcode 4.5 / iOS 6, connecting an action to the first responder has no effect. It is set in the storyboard file, but at runtime, the target/action is not set at all.
Steps to Reproduce:
Here's a sample demonstrating the bug.
https://github.com/n-b/FirstResponderBugWithStoryboard
You can switch a commented line in the appdelegate to use a nib instead of a storyboard.
Both contain the same viewcontroller ("TestVC"), setup with a single button, connection to an action in the app delegate. Tapping the button should trigger the action in the responder chain.
When using the nib, the connection is set, and the action is fired.
Regression:
Works with nibs. Probably broken for the first time since Interface Builder 1.0.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Indeed, it's a duplicate.
Duplicate of http://openradar.appspot.com/12402078?