Xcode storyboard is masking uitabbarcontroller ele

2019-09-14 04:52发布

问题:

When I launched my project, all the uitabbarcontroller views are covered in blue. I didn't set the background to blue in code or by using the storyboard. And all of the elements that I add onto the storyboard go behind this mask.

Here is what it looks like. What could I be doing wrong?

Using Xcode 10 and Swift 3.

回答1:

This is a bug in Xcode 8, when you add an image to your tabbar item the blue area will be removed for that specific viewController. So add an image to the tabbar item and the blue mask will disappear.