title: How to adjust two column custom cells, text alignment for multi-line simultaneously in UITableView
body: <p><strong>Problem Statement 1:</strong> Unable to align two custom cells text simultaneously for multiline, as shown below.
  <a href="https://i.stack.imgur.com/uq4qr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uq4qr.jpg" alt="enter image description here"></a></p>
  
  <p>You can see here, for multi-line cell both the cell contents are not at same starting top line.</p>
  
  <p>When there is no multiline content, then it is ok, as shown in below</p>
  
  <p><a href="https://i.stack.imgur.com/DCe7q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DCe7q.jpg" alt="enter image description here"></a></p>
  
  <p>You can see, how both the cell contents are aligned on same line properly.</p>
  
  <p><strong>Problem Statement 2:</strong> And there is one more problem, if cell is having large content, it won't increase it's height, instead of that it gets small font size as shown below</p>
  
  <p><a href="https://i.stack.imgur.com/7uVIG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7uVIG.jpg" alt="enter image description here"></a>
  Below is my coding stuff, by this way I've managed for two custom cell with multiline.</p>
  
  <pre><code>func tableView(tableViewData: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell
      {
  
          let cell = tableViewData.dequeueReusableCellWithIdentifier("cell")! as! StudentCell
  
          if indexPath.row &lt; self.mMeaningArray.count
          {
              cell.lblMeaning1.text = self.mMeaningArray[indexPath.row]
          }
          else
          {
              cell.lblMeaning1.text = ""
          }
          if indexPath.row &lt; self.hMeaningArray.count
          {
              cell.lblMeaning2.text = self.hMeaningArray[indexPath.row]
          }
          else
          {
              cell.lblMeaning2.text = ""
          }
  
          self.allowMultipleLines(cell)
  
          cell.lblMeaning1.layoutIfNeeded()
          cell.lblMeaning2.layoutIfNeeded()
  
          return cell
      }
  
      func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -&gt; CGFloat
      {
  
          return UITableViewAutomaticDimension
      }
  
      func tableView(tableView: UITableView, estimatedHeightForRowAtIndexPath indexPath: NSIndexPath) -&gt; CGFloat
      {
          return UITableViewAutomaticDimension
      }
  
      func allowMultipleLines(tableViewCell:UITableViewCell)
      {
          tableViewCell.textLabel?.numberOfLines = 0
          tableViewCell.textLabel?.lineBreakMode = NSLineBreakMode.ByWordWrapping
          tableViewCell.textLabel?.sizeToFit()
      }
  </code></pre>
  
  <p>I know, it is adjusting its font size, as per contents, but I want that, it should be a fixed font-size with multi-line and simultaneously it should align text properly.</p>
  
  <p>I've search on various sites, links &amp; refer multiple questions of stack-overflow, but for this situation, didn't find any solution.</p>