title: How can I vertically align all my contents of my Table View Cell?
body: <p>I want to make all the contents in my table cell vertical align center. </p>
  
  <p><a href="https://i.stack.imgur.com/Rgw4u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rgw4u.png" alt="enter image description here"></a></p>
  
  <p>I want my content to render at the red line </p>
  
  <p><a href="https://i.stack.imgur.com/TX6Qq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TX6Qq.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>I've tried </p>
  
  <p><strong>via code</strong> </p>
  
  <pre><code>func updateTableViewContentInset() {
      let viewHeight: CGFloat = view.frame.size.height
      let tableViewContentHeight: CGFloat = placesTable.contentSize.height
      let marginHeight: CGFloat = (viewHeight - tableViewContentHeight) / 2.0
  
      self.placesTable.contentInset = UIEdgeInsets(top: marginHeight, left: 0, bottom:  -marginHeight, right: 0)
  }
  
  override func viewWillAppear(_ animated: Bool) {
      updateTableViewContentInset()
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/xSIzm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xSIzm.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>I tried </p>
  
  <p><a href="https://i.stack.imgur.com/5O7IU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5O7IU.png" alt="enter image description here"></a></p>
  
  <p>I got </p>
  
  <p><a href="https://i.stack.imgur.com/QdnNg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QdnNg.png" alt="enter image description here"></a></p>
  
  <p>result </p>
  
  <p><a href="https://i.stack.imgur.com/sxb8g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sxb8g.png" alt="enter image description here"></a></p>
  
  <p>or even via the storyboard, but have not get the desired result that I am looking for yet.</p>
  
  <p><strong>Any hints for me ?</strong> </p>