简体   繁体   English

TableViewCell图像未显示

[英]TableViewCell image is not shown

I am using Xcode 8.0 and SWIFT 3 for my development environment. 我在开发环境中使用Xcode 8.0和SWIFT 3。 I am designing the storyboard as below, but I don't know why the image in the TableViewCell is shown on runtime but not on storyboard. 我正在按以下方式设计情节提要,但是我不知道为什么TableViewCell中的图像在运行时显示,而在情节提要中不显示。

Does anyone have a clue? 有人有线索吗?

在此处输入图片说明

Looks like a bug. 看起来像个错误。 Try changing the device to 6s plus or something else in view as: option in Storyboard. 尝试将设备更改为6s plus或Storyboard中的view as:选项。 It might do the trick. 它可能会成功。

在此处输入图片说明

I found this to work for me... 我发现这对我有用...

In your Assets.xcassets, make sure you include a picture for the 1x, 2x and 3x spots. 确保在Assets.xcassets中包含一张用于1x,2x和3x点的图片。 For each image. 对于每个图像。

资产

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM