title: How to copy selected rows from one UITableView to another?
body: <p>I have two viewcontrollers where both have tableviews. The first viewcontroller has an image with a title in each row, while the other has empty rows. What I want is to able to copy the contents of the selected rows in the first viewcontroller and paste them into the empty rows in the second viewcontroller.</p>
  
  <p>Here is the .m file:</p>
  
  <pre><code>#import "SimpleTableViewController.h"
  
  @interface SimpleTableViewController ()
  
  @end
  
  
  @implementation SimpleTableViewController
  {
      NSArray *list;
  
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
      list = [NSArray arrayWithObjects:@"Pic 1", @"Pic 2", @"Pic 3", @"Pic 4", @"Pic 5", nil];
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  
      return [list count];
  
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
     static NSString *simpleTableIndentifier= @"simpleTableCell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIndentifier];
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIndentifier];
  
              }
      cell.textLabel.text = [list objectAtIndex:indexPath.row];
      cell.imageView.image = [UIImage imageNamed:@"image.jpg"];
      return cell;
  
  }
  
  @end
  </code></pre>
  
  <p>I'm new to UITableView so I'm doing this for learning purpose.</p>
  
  <p>Thank you</p>