title: how to use the function dequeueReusableCellWithIdentifier:forIndexPath?
body: <p>I know that dequeueReusableCellWithIdentifier:forIndexPath is called by tableView method inside the tableviewcontroller. And if I understand correctly, tableView method is called several times until all the cells are populated. But what I don't know is where do you get the value for the parameter IndexPath? I want to use dequeueReusableCellWithIdentifier:forIndexPath for a method that I created because I want to access my cell to copy some values of its properties.</p>
  
  <p><strong>NOTE:</strong>
  I already populated my cell, which means that I successfully used the method tableView.</p>
  
  <p><strong>(Edit) ADDITIONAL INFO:</strong>
  I'm trying to create a profile and edit profile tableviews. Inside the profile tableview, I displayed the name, address, contact#, etc., of the user. Also, I have a segue called edit profile. In the edit profile, I have textfields for each category (name, address, etc.). What I want to do is, if I edit the contents of the textfields, I should be able to display the new contents in my profile tableview. An example case would be: in the profile view I'm displaying -> name:human, address:earth (each in its own cell). Now if I go to editprofile tableview, I will edit the contents such that -> name:alien, address:mars. After that, there is a button called 'apply' to end editing of contents and go back to profile tableview. If I go back to profile view, the display should now be name:alien, address:mars and not name:human, address:earth.</p>
  
  <p>Here is some code if it's any help. The code is called by a button in tableviewcontroller. "MyCell" is the class of my cell. This code is not working properly. I hope someone can help me fix this.</p>
  
  <pre><code>- (IBAction)updateCopies:(id)sender {
         static NSString *ident = @"MyCell";
         NSIndexPath *indexPath;
         //create cell
         MyCell *cell = [self.tableView dequeueReusableCellWithIdentifier:ident forIndexPath:indexPath];
         //create variable for accessing cells
         int row = [indexPath row];
         _labelValues[row] = cell.textField.text
  </code></pre>
  
  <p>}</p>