Xcode - 按钮在情节提要中看起来不错,但在模拟器上却不行 [英] Xcode - Button looks good in storyboard but not on emulator

查看:20
本文介绍了Xcode - 按钮在情节提要中看起来不错,但在模拟器上却不行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用故事板中的按钮时,它们看起来不错,如下所示:

When I work with buttons in the storyboard they look good, like this:

但是当我运行应用程序时,它们变成了这样:

But when i run the app they turn out like this:

你们知道为什么吗?

这里是一些设置:

谢谢!

推荐答案

您可能已经将图像放在检查器的 Image 属性中.将该图像放在检查器的 背景 属性中.

You might have put image in Image attribute of inspector. Put that image in Background attribute of inspector.

这篇关于Xcode - 按钮在情节提要中看起来不错,但在模拟器上却不行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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