Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Content behind the status bar on Storyboard

I have a TableView and ImageView header on Storyboard (Xcode 9). I wonder how it is possible to set content (ImageView) behind the status bar and not below the status bar.

imageView must go behind the status bar

With this line of code I get the desired result, but I want to set this through the Storyboard.

tableView.contentInsetAdjustmentBehavior = .never

Thanks for the help.

like image 342
Mark Avatar asked Oct 25 '17 15:10

Mark


1 Answers

  • Select your table view in your storyboard

  • Open the Size Inspector (ruler tab in the right pane)

  • Go to section entitled "Scroll View"

  • Look for the drop down named "Content Insets"

  • Open the drop down and select "Never"

Content insets drop down

like image 66
beyowulf Avatar answered Oct 02 '22 00:10

beyowulf