If I Had a Photograph of You (or “How to Cache Images in CocoaTouch”)
A quick note. Wanting to cache images in an iPhone app? Load the image using:
[UIImage imageNamed:]
if you use:
[UIImage imageWithContentsOfFile:]
the image will not be cached.
A quick note. Wanting to cache images in an iPhone app? Load the image using:
[UIImage imageNamed:]
if you use:
[UIImage imageWithContentsOfFile:]
the image will not be cached.