title: Objective c didSelectRowIndexPath - Passing data to other View Controller
body: <p>Hi there i am trying to pass the data from my TableViewController_My_boards to ViewController_Update_Boards but i am not sure how to do it
  So first of all i create a dictionary with the data from firestore</p>
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      
      // Uncomment the following line to preserve selection between presentations.
      // self.clearsSelectionOnViewWillAppear = NO;
      
      // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
      // self.navigationItem.rightBarButtonItem = self.editButtonItem;
      _db = [FIRFirestore firestore];
      
      objNSDictinoaryListOfBoards =[[NSMutableDictionary alloc]initWithCapacity:5];
      [[self.db collectionWithPath:@&quot;boards&quot;]
          getDocumentsWithCompletion:^(FIRQuerySnapshot * _Nullable snapshot,
                                       NSError * _Nullable error) {
            if (error != nil) {
              NSLog(@&quot;Error getting documents: %@&quot;, error);
            } else {
              for (FIRDocumentSnapshot *document in snapshot.documents) {
                  NSString *key = document.documentID;
                  NSDictionary *boardDetails = document.data;
                  [self-&gt;objNSDictinoaryListOfBoards setObject:boardDetails forKey:key];
                  
                  //NSLog(@&quot;%@ =&gt; %@&quot;, document.documentID, document.data);
  
              }
                NSLog(@&quot;self-&gt;objNSDictionaryListOfBoards= %@&quot;, self-&gt;objNSDictinoaryListOfBoards);
                [self.tableView reloadData];
  
            }
          }];}
  </code></pre>
  <p>After that i display the name of each item in my table view cells</p>
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@&quot;SimpleIdentifier1&quot; forIndexPath:indexPath];
     
     // Configure the cell...
     NSString *boardNo =[objNSDictinoaryListOfBoards allKeys][indexPath.row];
     NSString *boardName =objNSDictinoaryListOfBoards [boardNo][@&quot;name&quot;];
  
     cell.textLabel.text=boardName;
     return cell;
  }
  </code></pre>
  <p>And then i want to pass the data to next viewcontroller when i click on the cell with the didSelectRowIndexPath
  This is what i have but im lost from here.</p>
  <pre><code>
  
  - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
      UIStoryboard *sb=[UIStoryboard storyboardWithName:@&quot;Main&quot; bundle:nil];
      UIViewController *vc=[sb instantiateViewControllerWithIdentifier:@&quot;ViewController_Update_Boards&quot;];
      vc.modalTransitionStyle= UIModalTransitionStyleFlipHorizontal;
      //[self presentViewController:vc animated:YES completion:NULL];
      [self.navigationController pushViewController:vc animated:TRUE];
  }
  </code></pre>
  <p>Thanks in advance</p>