title: Receiver has no segue with identifier"***"
body: <p>I encounter this problem for the first time. I checked similar problems on stack overflow, but none of the solutions can solve my issue so I have this posting.</p>
  
  <p>Up to the present, I have two view <code>controllers</code>(let's say A and B) and I am trying to connect them with a segue with name "toB". When I run the program, Xcode told me <code>Receiver(B) has no segue with identifier "toB"</code>.</p>
  
  <p>I am pretty sure that the spellings of the <code>identifier</code>in the <code>storyboard</code> and in the code are exactly the same. And the line of the segue has connected the <code>A view controller</code> and <code>B view controller</code>.</p>
  
  <p>But the <code>storyboard</code> IDs of the two view <code>controllers</code> are different. Is it the problem??</p>
  
  <p>Hope someone could help me out. Thanks in advance!</p>
  
  <hr>
  
  <p><strong>SOLUTION</strong></p>
  
  <p>Thanks for @Amit Shelgaonkar's hint! In my case, moving the <code>performSegueWithIdentifier</code> to <code>viewDidAppear</code> still doesn't work, but moving it to <code>applicationWillEnterForeground</code> solves the problem! </p>
  
  <p>I still don't know why it doesn't work in my case, because when I tried to develop a testing app and put the <code>performSegueWithIdentifier</code> in <code>viewDidAppear</code>, it works perfectly.</p>