Why UIBarButtonItem doesn't call IBAction before segue?
问题 My question is very similar to : Swift: Make button trigger segue to new scene The issue is: I have a view controller, with a button that causes another view controller to appear modally. I have Ctrl+Click from the button to the second View Controller, and created the segue in IB. Then I Ctrl+Click from the button again to the source code of the view controller to create an IBAction method. I assumed that the button will do two things now: a) call the IBAction method , and b) perform the