Valerii  Pavlov
Valerii Pavlov

Reputation: 2033

Why can't I view PNG images within an iOS application's bundle?

When looking in a compiled .app bundle, I see PNG images used as resources for this application. However, when I try to view them, they come up blank.

Why can't I view these PNG images from compiled iOS apps? Is there a way to do so?

Upvotes: 3

Views: 7600

Answers (1)

logancautrell
logancautrell

Reputation: 8772

You should not use other people assets without their permission.

You are running into the fact that PNG files are optimized during the file copy phase of an iOS build. You have to revert the optimization to view them.

pngcrush -revert-iphone-optimizations <filename>

Apple has published a Tech note about Viewing iPhone-Optimized PNGs.

Upvotes: 7

Related Questions