Home > other >  Lower Z index of view in storyboard
Lower Z index of view in storyboard

Time:01-22

I created a tab bar with UIView in the storyboard, and after that I decided to add a UIImageView under the tab bar view. The image must be at the bottom, behind the tab bar, but the image view overlaps my tab bar. How do I lower my image view's z-index to fix the problem?

I've already tried moving the tab bar up in the Document Outline:

Screenshot of document outline

Pictures for understanding:

Image view and tab bar next to each other

Image view overlaps tab bar

CodePudding user response:

First make sure the Document Outline is opened in your storyboard. It's the icon at the bottom-left of your screen.

Button at bottom-left of screen "Show Document Outline"

Then just drag the image view before the tab bar. This will bring it to the bottom.

Image is ordered before the tab bar

  •  Tags:  
  • Related