I'm trying to do something really simple. I have an image for a button and I'm trying to set it on a custom button in interface builder. I set the background image accordingly (no case sensitivity problem here). In interface builder it shows up, but in the simulator or on the device it doesn't appear at all. Just the button's text will appear. Do I need to turn on some flag or something of the sort?
我试着做一些非常简单的事情。我有一个按钮的图像,我试图在接口构建器的自定义按钮上设置它。我相应地设置背景图像(这里没有区分大小写的问题)。在接口构建器中,它会出现,但在模拟器或设备中,它根本不会出现。只会出现按钮的文本。我需要打开一些旗帜或类似的东西吗?
1 个解决方案
#1
5
I found the problem. It wasn't being linked with the Target's Copy Bundle Resources. I don't think I ever had to do this for other resources.
我发现这个问题。它没有被链接到目标的复制包资源。我不认为我需要为其他资源做这个。
Shouldn't this be done automatically when you add it to the Resources of the project?
当您将它添加到项目的资源中时,难道不应该自动完成吗?
#1
5
I found the problem. It wasn't being linked with the Target's Copy Bundle Resources. I don't think I ever had to do this for other resources.
我发现这个问题。它没有被链接到目标的复制包资源。我不认为我需要为其他资源做这个。
Shouldn't this be done automatically when you add it to the Resources of the project?
当您将它添加到项目的资源中时,难道不应该自动完成吗?