Content behind the status bar on Storyboard
Asked Answered
H

1

5

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.

Hodgkins answered 25/10, 2017 at 15:47 Comment(0)
J
13
  • 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

Jimjams answered 25/10, 2017 at 16:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.