title: IOS TableView first cell Image should start from status bar
body: <p>Created table view in which first cell contains an Image I want this image to overlap with status bar like shown in image below. How to create NavigationBar accordingly?</p>
  
  <p><a href="https://i.stack.imgur.com/ojsqu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ojsqu.jpg" alt="enter image description here"></a></p>
  
  <p>Tried following line of code didn't worked for me.</p>
  
  <pre><code>tableView.contentInset = UIEdgeInsets(top: -UIApplication.shared.statusBarFrame.size.height, left: 0, bottom: 0, right: 0)
  </code></pre>
  
  <p><strong>Also played around with safe area and super view but no luck with that</strong></p>
  
  <p>Update:</p>
  
  <p>Added top space to superview -90 constraint to tableview now Image is visible in status bar wanted to know is that right way to do or is there any other way</p>
  
  <p><a href="https://i.stack.imgur.com/zMgxY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zMgxY.png" alt="enter image description here"></a></p>
  
  <p>Found that there is empty black space at top due to navigation controller and navigation bar it is not working until I set top space to super view as -90 following is image</p>
  
  <p><a href="https://i.stack.imgur.com/XPxmo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XPxmo.png" alt="enter image description here"></a></p>
  
  <p>In storyBoard I can check empty space at top is taken by navigation item</p>
  
  <p><a href="https://i.stack.imgur.com/rU0UA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rU0UA.png" alt="enter image description here"></a></p>