Why do .png backgrounds appear black on iPhone device but not simulator?

Posted by David Rea on Stack Overflow See other posts from Stack Overflow or by David Rea
Published on 2010-06-01T17:27:22Z Indexed on 2010/06/01 17:33 UTC
Read the original article Hit count: 202

Filed under:
|

I started with a .tiff file and used GraphicConverter to change it to a .png and set a transparency color. Worked fine in the simulator but when I pushed to the device the transparency color became black. Tested with a .png I downloaded from the net and that worked fine, so it seems to only happen with some files. Thus I suspect it has something to do with the way GraphicConverter writes the .pngs, but I don't know enough about file formats to debug it. Any ideas/suggestions? Ideally I'd like to programatically treat all .pngs because my app allowed dynamic loading of arbitrary files, so I can't verify the transparency beforehand.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about png-transparency