简体   繁体   中英

Swift - Navigation Bar Not Appearing From Segue From Custom Cell

Here is a picture of my storyboard: 这是我的故事板的图片:

I assume the problem is because the segue is coming from a custom table view cell. The button will send information based on the cell selected. When I press the button, I just perform the segue with identifier. Unfortunately, the navigation bar does not appear, and I can't imagine why its not appearing.

Any help is greatly appreciated!

EDIT: Here is the storyboard segue. It is push: 推

EDIT2: Here is the code I am using to perform this segue:

 func buttonAction(sender: UIButton!) {
    segueIndex = sender.tag
    performSegue(withIdentifier: "segue_show_job", sender: self)

}


override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if segue.identifier == "segue_show_job" {
        let nextVC = segue.destination as! PlaceBidTableViewController
        nextVC.job_info.job_info = self.job_arr_arr.job_info_arr_arr[segueIndex]
    }
}

ANSWER:

Maximo and XCoder, thank you for your help. Even though my segue was push, something must have been corrupted. I deleted the segue and re-created it and it worked! Thanks!

Maximo and XCoder, thank you for your help. Even though my segue was push, something must have been corrupted. I deleted the segue and re-created it and it worked! Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM