<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Geek Blog &#187; howto</title>
	<atom:link href="http://www.artin.org/geekblog/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.artin.org/geekblog</link>
	<description>A place to write down the crap from my brain</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:45:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Xcode 4 &#8211; Problem submitting App with Static Library</title>
		<link>http://www.artin.org/geekblog/2011/03/xcode-4-problem-submitting-app-with-static-library/</link>
		<comments>http://www.artin.org/geekblog/2011/03/xcode-4-problem-submitting-app-with-static-library/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 01:12:16 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Core Plot]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ios]]></category>

		<guid isPermaLink="false">http://www.artin.org/geekblog/?p=130</guid>
		<description><![CDATA[I&#8217;m submitting a new version of my Migraine Diary App to the App Store and was running into problems with Xcode 4 giving me the following error: &#8220;[Your App Name] does not contain a single-bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single-bundle application.&#8221; There is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m submitting a new version of my Migraine Diary App to the App Store and was running into problems with Xcode 4 giving me the following error: &#8220;[Your App Name] does not contain a single-bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single-bundle application.&#8221;</p>
<p><a href="http://www.artin.org/geekblog/wp-content/uploads/2011/03/MigraineDiaryCannotBeSubmitted.png"><img class="aligncenter size-full wp-image-131" title="MigraineDiaryCannotBeSubmitted" src="http://www.artin.org/geekblog/wp-content/uploads/2011/03/MigraineDiaryCannotBeSubmitted.png" alt="" width="420" height="148" /></a>There is an issue or maybe it&#8217;s an intentional design thing with Xcode 4 and how it handles statically built libraries being included in your project.  I&#8217;m specifically using Core Plot and it&#8217;s instruction set hasn&#8217;t been updated for Xcode 4 yet.  Here are the things I had to do to get Core Plot to bundle correctly with my App to submit it:</p>
<ol>
<li>Click on the Core Plot project which should be a child of your App&#8217;s project.</li>
<li>Click on the Project CorePlot-CocoaTouch and go to the Build Settings.  Set &#8220;Skip Install&#8221; to Yes.</li>
<li>Click on the CorePlot-CocoaTouch target and set &#8220;Skip Install&#8221; to Yes.</li>
<li>Click Build Phases and under Copy Headers, move all of the Public and Private entries to the Project section.</li>
</ol>
<p>You should then be able to build your project for Archive and submit to Apple.</p>
<p>Thanks to Apple Dev Forums &#8211; <a href="https://devforums.apple.com/thread/86137">https://devforums.apple.com/thread/86137</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.artin.org/geekblog/2011/03/xcode-4-problem-submitting-app-with-static-library/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>iOS Basics &#8211; UINavigation Controller &amp; Back Button Text</title>
		<link>http://www.artin.org/geekblog/2011/03/ios-basics-uinavigation-controller-back-button-text/</link>
		<comments>http://www.artin.org/geekblog/2011/03/ios-basics-uinavigation-controller-back-button-text/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 15:16:09 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.artin.org/geekblog/?p=120</guid>
		<description><![CDATA[I&#8217;ve brought an old project out of the moth balls recently, the Migraine Diary application I wrote as part of my master&#8217;s thesis.  It was my first &#8220;real&#8221; iPhone app and I call tell I didn&#8217;t know what I was doing entirely looking through the code.  What this has forced me to do, however, is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve brought an old project out of the moth balls recently, the <a href="http://itunes.apple.com/us/app/migraine-diary/id348561271?mt=8" target="_blank">Migraine Diary</a> application I wrote as part of my master&#8217;s thesis.  It was my first &#8220;real&#8221; iPhone app and I call tell I didn&#8217;t know what I was doing entirely looking through the code.  What this has forced me to do, however, is re-learn some of the basics of iOS development and of Apple design patterns.  I have been spending some time back in the Apple developer documentation and will probably be posting some of the gotchas that tripped me up two years ago and I&#8217;m solving now with the better, more elegant solution.</p>
<p>Navigation controllers are very useful things to have in your app, and are probably the easiest thing to implement WRONG.  Two years ago, I assumed any time I needed a navigation bar up top that I needed to create a UINavigationController and make my view the root controller of it.  Silly me.</p>
<p>One of the problems I was facing in the Migraine Diary app was changing the back button text when I was one or more levels deep into a navigation controller.  My main view was titled &#8220;Journal Entries&#8221; and my child view &#8220;Journal Entry&#8221;.  By default, the controller will title the back button as &#8220;Journal Entries&#8221; which you can see clutters up the screen.</p>
<p><a href="http://www.artin.org/geekblog/wp-content/uploads/2011/03/2011-03-20_09-35-11.png"><img class="aligncenter size-full wp-image-121" title="2011-03-20_09-35-11" src="http://www.artin.org/geekblog/wp-content/uploads/2011/03/2011-03-20_09-35-11.png" alt="" width="332" height="94" /></a></p>
<p>I found a lot of ways of hacking the title online, but there is really only one &#8220;right way&#8221; according to Apple.  The button titled &#8220;Journal Entries&#8221; is actually owned by <strong>the parent view</strong>.  Before you push the child view onto the navigation controller, do something like this:</p>
<p style="padding-left: 30px;">UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@&#8221;Back&#8221; style:UIBarButtonItemStyleBordered target:nil action:nil];<br />
[[self navigationItem] setBackBarButtonItem:backButton];<br />
[backButton release];</p>
<p>Take note that you&#8217;re referring to [self navigationItem] not [[self navigationController] navigationItem] since you are in the PARENT controller.</p>
<p><a href="http://www.artin.org/geekblog/wp-content/uploads/2011/03/NavControllerWithBack.png"><img class="aligncenter size-full wp-image-125" title="NavControllerWithBack" src="http://www.artin.org/geekblog/wp-content/uploads/2011/03/NavControllerWithBack.png" alt="" width="326" height="90" /></a>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artin.org/geekblog/2011/03/ios-basics-uinavigation-controller-back-button-text/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Loading a UIImage from a bundle</title>
		<link>http://www.artin.org/geekblog/2009/06/loading-a-uiimage-from-a-bundle/</link>
		<comments>http://www.artin.org/geekblog/2009/06/loading-a-uiimage-from-a-bundle/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 00:33:36 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[uiimage]]></category>

		<guid isPermaLink="false">http://www.artin.org/geekblog/?p=33</guid>
		<description><![CDATA[I&#8217;ve been scratching my freaking head for an hour trying to figure out how to load an image from my application&#8217;s bundle.  Doing this in Interface Builder is easy as pie, but not so straightforward. [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@&#8221;thefilename&#8221; ofType:@&#8221;jpg&#8221;]]; Easy, isn&#8217;t it?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been scratching my freaking head for an hour trying to figure out how to load an image from my application&#8217;s bundle.  Doing this in Interface Builder is easy as pie, but not so straightforward.</p>
<p>[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@&#8221;thefilename&#8221; ofType:@&#8221;jpg&#8221;]];</p>
<p>Easy, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artin.org/geekblog/2009/06/loading-a-uiimage-from-a-bundle/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

