title: Receiver MainVIewController has no segue iOS
body: <p><strong>Question was solved! See the code at the bottom.</strong></p>
  
  <p>I'd like to pass some data between 2 controllers. I have MainViewController class where GoogleMap is loaded. On click at custom info window for each GMap's marker I want to open new window with place details. 
  My storyboard is:
  <img src="https://i.stack.imgur.com/qAJrg.png" alt="Storyboard"></p>
  
  <p>Segue was named: showPlaceDetails:</p>
  
  <p><img src="https://i.stack.imgur.com/iOy1O.png" alt="Segue"></p>
  
  <p>Several methods was written:</p>
  
  <pre><code>- (void) mapView:(GMSMapView *)mapView didTapInfoWindowOfMarker:(GMSMarker *)marker {
      [self performSegueWithIdentifier:@"showPlaceDetails" sender: nil];
  }
  </code></pre>
  
  <p>(I also tried to use <code>sender: [marker snippet]</code>). </p>
  
  <p>My prepareForSegue method:</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
      if ([segue.identifier isEqualToString:@"showPlaceDetails"]) {
          //[[segue destinationViewController] setDelegate:self];
          PlaceDetailsViewController *destViewController = segue.destinationViewController;
          //Pass some data
      }
  }
  </code></pre>
  
  <p>But I got the message: 
  <strong>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (RelaxInKZViewController) has no segue with identifier 'showPlaceDetails''</strong></p>
  
  <p>I did these steps: </p>
  
  <ol>
  <li>Add New View Controller on storyboard.</li>
  <li>Add Objective-C Class called PlaceDetailsViewController.</li>
  <li>Change custom class of newly added VC to "PlaceDetailsViewController"</li>
  <li>Add that code</li>
  <li>Clear Simulator's data and clean project</li>
  </ol>
  
  <p>And nothing. I hope you can help me :)
  Thx, Artem.</p>
  
  <hr>
  
  <p>Mr_bem has adviced me to refuse segues and use pushViewController method. It's good! </p>
  
  <pre><code>UIStoryboard *iPhoneStoryboard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
      PlaceDetailsViewController *destViewController = [iPhoneStoryboard instantiateViewControllerWithIdentifier:@"PlaceDetailsViewController"];
      destViewController.placeData = marker.placeData;
      [self.navigationController pushViewController:destViewController animated:NO];
  </code></pre>