Programmatically go back to previous ViewController in Swift

前端 未结 15 1570
野的像风
野的像风 2020-12-04 04:50

I send the user over to a page on a button click. This page is a UITableViewController.

Now if the user taps on a cell, I would like to push him ba

15条回答
  •  误落风尘
    2020-12-04 05:54

    For questions regarding how to embed your viewController to a navigationController in the storyboard:

    1. Open your storyboard where your different viewController are located
    2. Tap the viewController you would like your navigation controller to start from
    3. On the top of Xcode, tap "Editor"
    4. -> Tap embed in
    5. -> Tap "Navigation Controller

提交回复
热议问题