title: pass data to UITableViewCell iOS
body: <p>I currently have a tableView with custom cells that I've called AMPFeedbackTableViewCell. The cells load up perfectly fine. </p>
  
  <p>Here is the code:</p>
  
  <pre><code>-(UITableViewCell*) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      //UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"feedbackCell"];
  
      AMPFeedbackTableViewCell* cell = (AMPFeedbackTableViewCell*) [tableView dequeueReusableCellWithIdentifier:@"feedbackCell"];
      if (cell == nil)
      {
          cell = [[AMPFeedbackTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"feedbackCell"];
          cell.currentFeedback = [[AMPFeedback alloc] init];
          cell.currentFeedback = [_feedbackArray objectAtIndex:indexPath.row];
          NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"FeedbackTableCell" owner:self options:nil];
          cell = [nib objectAtIndex:0];
      }
  </code></pre>
  
  <p>I'm trying to pass something to the cell before it starts like in this case it's _currentFeedback. The custom cell has a AMPFeedback item and I want it to set it before it loads. So I can use it like this : (NOTE: This is in AMPFeedbackTableViewCell</p>
  
  <pre><code>- (void)awakeFromNib
  {
      // Initialization code
      if (_currentFeedback != nil)
          [self loadImages];
  }
  </code></pre>
  
  <p>However, _currentFeedback is always nil. Is there a way I can pass it over then call awakeFromNib?</p>
  
  <p>Thanks in advance</p>