Xcode 故事板正在用蓝色掩盖 uitabbarcontroller 元素 [英] Xcode storyboard is masking uitabbarcontroller elements with blue colour

查看:26
本文介绍了Xcode 故事板正在用蓝色掩盖 uitabbarcontroller 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动我的项目时,所有 uitabbarcontroller 视图都被蓝色覆盖.我没有在代码中或使用故事板将背景设置为蓝色.我添加到故事板上的所有元素都隐藏在这个面具之后.

这是它的样子.我可能做错了什么?>

使用 Xcode 10 和 Swift 3.

解决方案

这是 Xcode 8 中的错误,当您将图像添加到 标签栏时 项,该特定viewController 的蓝色区域将被删除.所以在tabbar item中添加一张图片,蓝色遮罩就会消失.

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.

解决方案

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.

这篇关于Xcode 故事板正在用蓝色掩盖 uitabbarcontroller 元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆