title: UILabel won't wrap
body: <p>I'm having a problem with my iOS app and getting a UILabel in a UITableViewCell to wrap. The text shows but it will only display on one line. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
  
      UILabel *noteLabel = (UILabel *)[cell.contentView viewWithTag:2];
  
      NSDictionary *contact = [jsonResults objectAtIndex:indexPath.row];
      noteLabel.lineBreakMode = UILineBreakModeWordWrap;
      noteLabel.numberOfLines = 0;
      noteLabel.text = [contact objectForKey:@"note"];   
      return cell;
  }
  </code></pre>
  
  <p>I believe the problem has something to do with this line:</p>
  
  <pre><code>UILabel *noteLabel = (UILabel *)[cell.contentView viewWithTag:2];
  </code></pre>
  
  <p>I'm not sure how else to get the label from a tag and I think this line won't let me change the labels properties.</p>