模态转换后未调用 IBAction

IBAction not being called after modal transition

我的导航栏上有以下 IBActions

    @IBAction func logoutPressed(sender: AnyObject) {

    SweetAlert().showAlert("Are you sure?", subTitle: "Do you really want to logout?", style: AlertStyle.Warning, buttonTitle:"Cancel", buttonColor:UIColorFromRGB(0xD0D0D0) , otherButtonTitle:  "Yep", otherButtonColor: UIColorFromRGB(0xDD6B55)) { (isOtherButton) -> Void in
        if isOtherButton == false {
            let popTime = dispatch_time(DISPATCH_TIME_NOW, Int64( Double(NSEC_PER_SEC) * 4.0 ))
            SwiftSpinner.show("Logging out")
            dispatch_after(popTime, dispatch_get_main_queue(), {
                PFUser.logOut()
                self.performSegueWithIdentifier("logoutSegue", sender: nil)
                SwiftSpinner.hide()

            })
        }
        else {
        }
    }

    }

//OPTIONS MENU
@IBAction func optionsPressed(sender: AnyObject) {
    let alert = SCLAlertView()
    alert.addButton("Submit Feedback"){
        var subjectText = "feedback"
        var toRecipient = ["some email address"]
        var mc:MFMailComposeViewController = MFMailComposeViewController()
        mc.mailComposeDelegate = self
        mc.setSubject(subjectText)
        mc.setToRecipients(toRecipient)
        self.presentViewController(mc, animated: true, completion: nil)
    }
    alert.addButton("About") {
        let storyboard = UIStoryboard(name: "Main", bundle: nil)
        let vc = storyboard.instantiateViewControllerWithIdentifier("about") as UIViewController
        self.presentViewController(vc, animated: true, completion: nil)
    }

等等....

当我将应用程序启动到包含这些 IBAction 的视图控制器时,这工作得很好。 但是,问题是当我执行 modal/push 转换到所述视图控制器时,IBAction 没有被调用....

有什么想法吗?

我也刚刚处理过这个问题,可能不是一个通用的解决方案,因为对我来说这是一个愚蠢的错误,但问题是我已经更改了 'view' 里面的 class我的 ViewController:

突出显示的视图被命名为其他名称,直到我在身份检查器中将它改回 UIView:

希望对您或其他人有所帮助:)