title: iOS Objective-C: How to call Push Segue from another Class
body: <p><strong>Scenario</strong> </p>
  
  <p>I have an app that displays posts to users in a UITableViewController - and inside certain posts that contains comments there will be <em>another</em> UITableView inside that cell to display the comments. Each comment the will contain a profile picture that is underneath a UIButton. When this UIButton is pushed I want the UITableViewController class to segue to another UIViewController that will display info about that user that made the post.</p>
  
  <p><strong>So, To recap</strong></p>
  
  <p><code>UITableViewController</code> <strong>will perform the Push Segue</strong></p>
  
  <p><code>UITableViewController</code> has <code>UITableViewCells</code></p>
  
  <p><code>UITableViewCells</code> <em>(that contain comments)</em> will have a child <code>UITableView</code></p>
  
  <p><code>UITableView</code> will contain cells itself, each with a <code>UIButton</code></p>
  
  <p>when <code>UIButton</code> is pushed, <code>UITableViewController</code> <strong>will perform the Push Segue</strong></p>
  
  <p><strong>What I've Tried</strong></p>
  
  <pre><code>- (void)ProfilePictureWasPushed:(UIButton *)sender {
  
      NSDictionary *object = [self.comments objectAtIndex:sender.tag];
  
      DashboardViewController *dashboard = [[DashboardViewController alloc]init];
      dashboard.selectedID = object[@"posterID"];
      [dashboard performSegueWithIdentifier:@"profile" sender:dashboard];
  
  }
  </code></pre>
  
  <p>I get this error...</p>
  
  <pre><code>...reason: 'Receiver (&lt;DashboardViewController: 0x7d867600&gt;) has no segue with identifier 'profile''
  </code></pre>
  
  <p>I have checked and there in fact is a push segue that is called "profile".</p>
  
  <p><strong>Question</strong></p>
  
  <p>Does anyone know how to properly perform this feat?</p>