在Swift中的Xcode 6 beta 3中加载带有png图像的UIImages如下:
PipsImg = (UIImage(named: "Die-1"))
Run Code Online (Sandbox Code Playgroud)
要么
PipsImg = [(UIImage(named: "Die-1")),(UIImage(named: "Die-2"))]
Run Code Online (Sandbox Code Playgroud)
从存储在Images.xcassets文件夹中的相关图像,我收到以下致命的运行时错误:
SimpleAnimation[680:60b] Unsupported pixel format in CSI
SimpleAnimation[680:60b] Unable to create unsliced image from csi bitmap data.
Run Code Online (Sandbox Code Playgroud)
这似乎在测试版4中得到了解决,但是有时会留下一些,因为有时这些回归