Changing only the body colour of UITableView or changing only the status bar colour
<p>I wanted to get a specific colour to the iOS status bar ,I understand it will take the colour of the top view controllers view .
And hence I can get this by applying the colour I want for the status bar to the table view ,which would look like this </p>

<p><a href="https://i.stack.imgur.com/16ypI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/16ypI.png" alt="enter image description here"></a></p>

<p>But when it doesn't have any rows then whole table view gets that color (Obvious! but thats not what i want) </p>

<p><a href="https://i.stack.imgur.com/95WTf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/95WTf.png" alt="enter image description here"></a></p>

<p>Is there any way to give colour only to the top part of the tableview so that status bar gets that colour or can i change the status bar color alone .
I have </p>

<blockquote>
  <p>View controller-based status bar appearance</p>
</blockquote>

<p>in Info.plist as NO .</p>