Storyboard Segue From View Controller to Itself

前端 未结 9 2091
无人及你
无人及你 2020-12-04 16:39

I am trying to make a mechanism to drill down a file / folder list. The idea is to show the same file list view controller every time the user selects a folder, and show a f

相关标签:
9条回答
  • 2020-12-04 17:16

    Using Xcode 5 there is a much simpler solution.

    1. Click the table cell in the storyboard
    2. Open the Connections Inspector (right arrow icon in the upper right)
    3. Under "triggered segues" you see "selection"
    4. Drag from the circle next to "selection" to the cell in the storyboard

    That's it.

    0 讨论(0)
  • 2020-12-04 17:17

    The correct answer is to use a Storyboard Reference that is referencing the UIViewController you want to segue to itself and then point the segue at it.

    0 讨论(0)
  • 2020-12-04 17:18

    I developed a method to create a segue using a phantom button. I believe it will solve your problem. You can read about it in my answer here.

    0 讨论(0)
提交回复
热议问题