Push segue with Storyboards

483 views Asked by At

I'm using storyboards for my universal (iPhone/iPad) app. I'm using the default master/detail split view.

On split view, everything is working fine, when I select an item in the master view, it's pushed in the detail view. But on iPhone, when I select an item, the detail view is presented like a modal popover (not sure of the name), and not with a push transition (with a right to the left transition and a back button).

Is there something wrong on my storyboard ? The segue between the master and the detail is a "Show (e.g. Push)" segue.

My storyboard

EDIT: I noticed that I was not very clear in what I wanted ! So here are some gifs.

Here is how my app is working : http://gph.is/1IcN78K

As you see, the detail view is presented with a popover.

Here is how I want it to work (this is a capture of the previous version of my app, I was not using storyboards and I was using Obj-C) : http://gph.is/1IcNKPE

EDIT 2 : Still in need for help. I tried a lot of things, I made a lot of research, but can't find a solution.

2

There are 2 answers

1
Mihail Babaev On

Try this:

  1. Create segue from your table view to target view and enter identifier
  2. Implement this function:

    func tableView(tableView:UITableView,
     accessoryButtonTappedForRowWithIndexPath indexPath: NSIndexPath) {
    
        performSegueWithIdentifier("yourIdentifier", sender: self)
    
    }
    
0
Bharat jain On

I am not exactly clear about the problem but you can try -

  1. select the segue .
  2. The properties related to segue will be shown at right side in XCode & you can change the way the viewcontroller appears .
  3. Select segue (this is what you want) .