Posted by: bearc0025 | October 12, 2011

imageNamed is evil « Under The Bridge

UIImage imageNamed is nice that it caches, but w/o being able to control when it clears the cache, it can be trouble.

However, as this example (below) shows, there’s an easy way to avoid the imageNamed cache, create your own references and clear it when you’d like.

via imageNamed is evil « Under The Bridge.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: