Apple Watch图像未在模拟器上显示 [英] Apple Watch Images not showing on simulator
问题描述
我正在使用Apple Watch,我只想在情节提要中设置一个图像即可.这是一个png文件,我在情节提要中进行了设置,但未在模拟器中显示.我已经尝试了所有方面和合适的选项.我认为该视图称为wkinterfaceimage.我也尝试过以编程方式添加,但也没有显示.未选中隐藏".关于我可能会缺少的任何想法?
I am working with the apple watch and I would like to just simply set an image in the storyboard. It is a png file and I set it in the storyboard, but it doesn't show up in the simulator. I have tried all of the aspect and fitting options. I believe the view is called a wkinterfaceimage. I have also tried adding programmatically and that does not show up either. Hidden is not checked. Any ideas of what I might be missing?
推荐答案
如果将图像作为文件包含在应用程序的捆绑包中,请选择该文件,然后选择 File Inspector 并将目标添加到目标会员身份:
If you have your image included as a file in your app's bundle select the file, choose File Inspector and add the target under Target Membership:
这篇关于Apple Watch图像未在模拟器上显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!