Can't remove arguemnt when connection a UIBarButtonItem Action from Interface builder to code

Originator:konstantin.koval1
Number:rdar://22498302 Date Originated:31-Aug-2015 01:45 PM
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:Enhancement Reproducible:Always
 
Summary:
I want to create an IBAction for a UIBarButtonItem from the Interface builder that would look like this. 

@IBAction func cancel() {
 }

Steps to Reproduce:
- Create a simple storyboard with  a view controller and a navigation bar. Add a UIBarButtonItem to it.
- Open assistance editor and try creating a IBAction by drag- drop.
the result is - 

@IBAction func cancel(sender: UIBarButtonItem) {
}

In the popup it's not possible to disable a sender (as for UIButton)

Expected Results:
@IBAction func cancel() {
}

Actual Results:
 
@IBAction func done(sender: UIBarButtonItem) {
 }

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!