ios - 无法在 .xcassets 中分配图像

标签 ios xcode

我使用的是 xcode 6.0。前一天,我更新到xCode 6.1.1,现在无法通过拖放将图像分配给.xcassets。

通常我只是将图像拖放到 1x、2x 框中。但是现在,当我尝试这样做时,盒子就消失了!

这是发生了什么......

enter image description here

一旦我将未分配的图像拖到框中,

enter image description here

它就这样消失了,留下未分配的 Assets !

最佳答案

我已经找到了解决这个问题的方法。创建同一 Assets 的副本并删除其内容,然后以某种方式重新分配同一图像。

关于ios - 无法在 .xcassets 中分配图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28085864/

相关文章:

ios - 在 xcode 6 中排序文档大纲

ios - 无法将类型 '() -> Void' 的值分配给类型 '(() -> Void)!'

ios - 使用ASNetworkImageNode加载https图像?

ios - didChangeCameraPosition 获取可用坐标的边界框/矩形

iOS CGContextSetRGBFillColor 不能用,颜色总是黑色

iOS 9.1 由于 APAddressBook 书籍而崩溃(未找到图片)

使用 OCMock 静态库的 iOS 单元测试(-Objcflags问题)

ios - Xcode 11 beta 无法在以证书问题结束的设备上安装应用程序

ios - SKReferenceNode 缩放后 Swift 碰撞不起作用

ios - 即使在使用 DispatchQueue 时也得到 "modifying the autolayout engine from a background thread after the engine was accessed from the main thread"