load png报错

前两天load一个png作为gamepad结果sio2loadImage报错,png chunk方面的error,只有真机上报错,sim是好的,而且很奇怪的是device编译出来的app里的png文件变大了,奇怪。暂时用tga来代替,明天解决png问题。
Solution:
Why is my application having problems processing PNG files?
The code that is trying to use your PNG files may not understand compressed PNG files.

Turn off the “Compress .png files” (COMPRESS_PNG_FILES) build setting. For information about build settings, see “Editing Build Settings” in Xcode Project Management Guide.
Project ->Edit Active Target -> Build -> Compress PNG Files -> OFF
参见
http://sio2interactive.forumotion.net/about-the-sdk-f1/loading-png-images-t901.htm

你可能感兴趣的:(职场,休闲,sio2)