<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Uiimage on The Dangling Pointer</title><link>https://aaron.blog/tags/uiimage/</link><description>Recent content in Uiimage on The Dangling Pointer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 04 Jun 2009 00:33:36 +0000</lastBuildDate><atom:link href="https://aaron.blog/tags/uiimage/index.xml" rel="self" type="application/rss+xml"/><item><title>Loading a UIImage from a bundle</title><link>https://aaron.blog/loading-a-uiimage-from-a-bundle/</link><pubDate>Thu, 04 Jun 2009 00:33:36 +0000</pubDate><guid>https://aaron.blog/loading-a-uiimage-from-a-bundle/</guid><description>&lt;p&gt;I've been scratching my freaking head for an hour trying to figure out how to load an image from my application's bundle.  Doing this in Interface Builder is easy as pie, but not so straightforward.&lt;/p&gt;&lt;p&gt;[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"thefilename" ofType:@"jpg"]];&lt;/p&gt;&lt;p&gt;Easy, isn't it?&lt;/p&gt;</description></item></channel></rss>