Note that there are some explanatory texts on larger screens.

plurals
  1. POsegue with correct identifier can not work
    primarykey
    data
    text
    <p><strong>I've search almost every related question, but still can not find a clue...</strong></p> <p>Here is what I did:</p> <p>1.Create a scrollView using storyboard.</p> <p>2.Programticaly created 10 myController(which are UITableViewControllers) inside the scrollViewController, So I can use panGesture to switch between tables. <strong>and it's working fine.</strong></p> <p>3.Created a tableViewController using storyboard, set myController to be the corresponding view controller.</p> <p>4.Embedded the tableViewController in navigation controller.</p> <p>5.Control drag from tableViewController to a new view controller to create a push segue.</p> <p>6.Setup segue identifier in storyboard.</p> <p><img src="https://i.stack.imgur.com/ljuTE.png" alt="enter image description here"></p> <p><strong>The Problem is:</strong></p> <p>A. When try to segue programmaticaly: use <code>[self performSegueWithIdentifier:@"test" sender:self];</code> in <code>tableView:didSelectRowAtIndexPath:</code> method.</p> <p>The exception shows all the time:<code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (&lt;MyTableViewController: 0x8b413c0&gt;) has no segue with identifier 'test''</code></p> <p>B. Than I tried <code>prepareForSegue:</code> but it has never been called.</p> <p>C. I've checked the segue identifier...there is no problem at all.</p> <p><strong>What's happening here??? Anyone has any idea???</strong></p> <p><strong>EDIT:</strong></p> <p>ScrollViewController and TableViewController are separately created on the same storyboard. no connection/segue between them.</p> <p>PIC Updated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload