views:

46

answers:

1

Are there any stock images that come with the system that I can use to fill a UIImage? For example, if I want a picture of a folder, do I have to include the image with my app? Or is there a system wide folder image I can load/display.

+1  A: 

Yes and no.

There are a lot of images in the system already. A lot are in ".artwork" files, which appear to raw be RGBA data with no metadata. The rest tend to be PNGs. You can find most of them bundled with the simulator (find /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk -iname '*.png'); you'll probably have to un-iPhoneize them with pngcrush -revert-iphone-optimizations to view them.

It is unwise to use them directly. They're for use by the frameworks, not you; there's no guarantee that they won't be removed between OS releases. While they're technically under Apple copyright, I don't think you're likely to get in trouble for bundling them with your app (just make sure you don't use them in an Android app, for example).

MobileSafari.app has a folder icon (it might be the same one MobileMail.app uses). I'm not aware of any file icon.

tc.