<?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>Cone Code Development</title>
	<atom:link href="http://conecode.com/news/feed/" rel="self" type="application/rss+xml" />
	<link>http://conecode.com/news</link>
	<description>Design and Development News</description>
	<lastBuildDate>Sat, 12 May 2012 18:02:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Xcode 4 How To &#8211; Exclude A File From ARC</title>
		<link>http://conecode.com/news/2012/05/xcode-4-how-to-exclude-a-file-from-arc/</link>
		<comments>http://conecode.com/news/2012/05/xcode-4-how-to-exclude-a-file-from-arc/#comments</comments>
		<pubDate>Sat, 12 May 2012 18:02:05 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=601</guid>
		<description><![CDATA[ARC (Automatic Reference Counting) is great addition to Xcode 4. It saves you time and aggravation of releasing objects from memory. However, there may be several libraries out there that have not been converted to ARC that you would like to inclue &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/05/xcode-4-how-to-exclude-a-file-from-arc/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>ARC (Automatic Reference Counting) is great addition to Xcode 4. It saves you time and aggravation of releasing objects from memory. However, there may be several libraries out there that have not been converted to ARC that you would like to inclue in your project. Rather than going through each file an converting it yourself, there is a way to exclude those file from ARC.<span id="more-601"></span></p>
<ol>
<li><strong>Click on the Target</strong></li>
<li><strong>Click on Build Phases</strong></li>
<li><strong>Open the Compile Sources section</strong></li>
<li><strong>Find file you want to exclude and double click on it.</strong></li>
<li><strong>Enter the following in to the dialog box -fno-objc-arc and click Done</strong></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/05/xcode-4-how-to-exclude-a-file-from-arc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS5 How To: JSON to NSDictionary &#8211; NSJsonSerialization</title>
		<link>http://conecode.com/news/2012/05/ios5-how-to-json-to-nsdictionary-nsjsonserialization/</link>
		<comments>http://conecode.com/news/2012/05/ios5-how-to-json-to-nsdictionary-nsjsonserialization/#comments</comments>
		<pubDate>Fri, 11 May 2012 17:05:16 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Xcode 4]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=592</guid>
		<description><![CDATA[iOS5 came with several shortcuts to parse JSON without the need of third-party libraries. It&#8217;s called NSJsonSerialization, and here&#8217;s how it works. Let&#8217;s say you&#8217;ve received JSON data (we&#8217;ll call it responseData) from a url and you would like to convert &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/05/ios5-how-to-json-to-nsdictionary-nsjsonserialization/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>iOS5 came with several shortcuts to parse JSON without the need of third-party libraries. It&#8217;s called NSJsonSerialization, and here&#8217;s how it works.</p>
<p>Let&#8217;s say you&#8217;ve received JSON data (we&#8217;ll call it responseData) from a url and you would like to convert the JSON to an NSDictionary  (dictJSON). Just put in the following code:<span id="more-592"></span></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="applescript"><pre class="de1">NSError <span class="sy0">*</span><span class="kw3">error</span> <span class="sy0">=</span> nil;
NSDictionary <span class="sy0">*</span>dictJSON <span class="sy0">=</span> <span class="br0">&#91;</span>NSJSONSerialization JSONObjectWithData:responseData options:<span class="nu0">0</span> <span class="kw3">error</span>:<span class="sy0">&amp;</span>amp;<span class="kw3">error</span><span class="br0">&#93;</span>;
&nbsp;
<span class="kw3">if</span> <span class="br0">&#40;</span><span class="kw3">error</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
    NSLog<span class="br0">&#40;</span>@<span class="st0">&quot;JSON parse error: %@&quot;</span>, <span class="br0">&#91;</span><span class="kw3">error</span> localizedDescription<span class="br0">&#93;</span><span class="br0">&#41;</span>;
    <span class="kw3">return</span>;
<span class="br0">&#125;</span></pre></div></div></div></div></div></div></div>


]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/05/ios5-how-to-json-to-nsdictionary-nsjsonserialization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View The NSDocumentDirectory Using Finder</title>
		<link>http://conecode.com/news/2012/05/view-the-nsdocumentdirectory-using-finder/</link>
		<comments>http://conecode.com/news/2012/05/view-the-nsdocumentdirectory-using-finder/#comments</comments>
		<pubDate>Fri, 04 May 2012 21:24:14 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iOS App Development for Beginners]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=584</guid>
		<description><![CDATA[This morning I was working on an iOS app that required saving various files to the device.  I wanted to track these files while running the iPhone Simulator to make sure my code was handling the files as it was &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/05/view-the-nsdocumentdirectory-using-finder/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://conecode.com/news/wp-content/uploads/2012/05/AppleScript.png"><img class="alignleft size-full wp-image-587" title="AppleScript" src="http://conecode.com/news/wp-content/uploads/2012/05/AppleScript.png" alt="" width="200" height="200" /></a>This morning I was working on an iOS app that required saving various files to the device.  I wanted to track these files while running the iPhone Simulator to make sure my code was handling the files as it was supposed to.  To do this I could dig through the folder structure in Terminal or output a bunch of NSLogs with the data I wanted, but the easiest method would be to open Finder and watch the directory as changes were made.  Since I know this will come up again in the future, I decided to make an AppleScript that will help me Quickly navigate to the iPhone Simulator path. Below are the steps I used to create the script.<span id="more-584"></span></p>
<p>Begin by opening the AppleScript Editor.  Press Command + Spacebar to open Spotlight, type &#8220;AppleScript&#8221;, and then press Enter.</p>
<p>Next, enter the following code into the editor.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="applescript"><pre class="de1"><span class="kw3">tell</span> <span class="kw1">application</span> <span class="st0">&quot;Finder&quot;</span>
	<span class="kw1">activate</span>
	<span class="kw3">set</span> x <span class="kw3">to</span> <span class="br0">&#40;</span><span class="kw1">path to</span> home <span class="kw1">folder</span> <span class="kw2">as</span> <span class="kw1">text</span><span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp; <span class="st0">&quot;Library:Application Support:iPhone Simulator:5.1:Applications&quot;</span> <span class="kw2">as</span> <span class="kw1">alias</span>
	<span class="kw1">open</span> x
<span class="kw3">end</span> <span class="kw3">tell</span></pre></div></div></div></div></div></div></div>


<p>This script will open a Finder window to the Applications folder for the iPhone Simulator version 5.1.  You can run the script now by clicking the Run button to see it work, but to make it so we can easily run it again later, we should save the file.</p>
<ol>
<li>Go to the menu and choose File &gt; Save As.</li>
<li>Enter a name for the script.  I entered &#8220;Open Simulator Folder&#8221;.</li>
<li>For where to save the files, I chose my Applications folder.</li>
<li>Choose Application for the file format.</li>
<li>And Finally Click the Save button.</li>
</ol>
<p>Now, if you go to your Launchpad, you should be able to find the script and click on it to run it.</p>
<p>The Applications folder stores each of your apps in a folder with a long encrypted name, but you can usually determine which app you want by looking at the Modified date.  Once you open the folder containing your app, you&#8217;ll see a file with the name of the app and a Documents folder.  You can then double click on the Documents folder to view all the files your app has saved to the NSDocumentDirectory.</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/05/view-the-nsdocumentdirectory-using-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS How To: Accessing iPhone Simulator&#8217;s SQLite</title>
		<link>http://conecode.com/news/2012/05/ios-how-to-accessing-iphone-simulators-sqlite/</link>
		<comments>http://conecode.com/news/2012/05/ios-how-to-accessing-iphone-simulators-sqlite/#comments</comments>
		<pubDate>Fri, 04 May 2012 17:51:02 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=574</guid>
		<description><![CDATA[When working with Core Data or SQLite, you never know if what your saving to your database is actually saving. Well if you&#8217;re testing with iPhone Simulator you can. Run your test that is supposed to be saving data then &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/05/ios-how-to-accessing-iphone-simulators-sqlite/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>When working with Core Data or SQLite, you never know if what your saving to your database is actually saving. Well if you&#8217;re testing with iPhone Simulator you can. Run your test that is supposed to be saving data then do the following:<br />
<span id="more-574"></span><br />
In Terminal go to the following location.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="bash"><pre class="de1"><span class="sy0">/</span>Users<span class="sy0">/&lt;</span>your name<span class="sy0">&gt;/</span>Library<span class="sy0">/</span>Application Support<span class="sy0">/</span>iPhone Simulator<span class="sy0">/&lt;</span>version<span class="sy0">&gt;/</span>Applications<span class="sy0">/&lt;</span>app name<span class="sy0">&gt;/</span>Documents</pre></div></div></div></div></div></div></div>


<p>&nbsp;</p>
<p>Type sqlite3 followed by the name of the sqlite file.</p>
<pre>sqlite3 myfile.sqlite</pre>
<p>&nbsp;</p>
<p>Now type .help to see a list of commands or type out straight sql</p>
<pre>select * from entityname</pre>
<p>&nbsp;</p>
<p>To exit sqlite3 type</p>
<pre>.exit</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/05/ios-how-to-accessing-iphone-simulators-sqlite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS How To: Check if Application is Active</title>
		<link>http://conecode.com/news/2012/05/ios-how-to-check-if-application-is-active/</link>
		<comments>http://conecode.com/news/2012/05/ios-how-to-check-if-application-is-active/#comments</comments>
		<pubDate>Tue, 01 May 2012 18:29:40 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=566</guid>
		<description><![CDATA[Have you ever wanted to know when your app entered the background or came back into the foreground? But you don&#8217;t want to have to hassle with trying to run methods in your current view from the App Delegate? I &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/05/ios-how-to-check-if-application-is-active/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to know when your app entered the background or came back into the foreground? But you don&#8217;t want to have to hassle with trying to run methods in your current view from the App Delegate? I can ease your pain. Add the following code to the viewDidLoad method of the class you like to handle these events:<span id="more-566"></span></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1"><span class="co2">// check if app is in the background</span>
<span class="br0">&#91;</span><span class="br0">&#91;</span><span class="kw5">NSNotificationCenter</span> defaultCenter<span class="br0">&#93;</span> addObserver<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;EnteredBackground&quot;</span> selector<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>appDidEnterBackground<span class="br0">&#41;</span> name<span class="sy0">:</span>UIApplicationDidEnterBackgroundNotification object<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;
&nbsp;
<span class="co2">// check if app is in the foreground</span>
<span class="br0">&#91;</span><span class="br0">&#91;</span><span class="kw5">NSNotificationCenter</span> defaultCenter<span class="br0">&#93;</span> addObserver<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;EnteredForeground&quot;</span> selector<span class="sy0">:</span><span class="kw1">@selector</span><span class="br0">&#40;</span>appDidEnterForeground<span class="br0">&#41;</span> name<span class="sy0">:</span>UIApplicationDidBecomeActiveNotification object<span class="sy0">:</span><span class="kw2">nil</span><span class="br0">&#93;</span>;</pre></div></div></div></div></div></div></div>


<p>The first one will run the appDidEnterBackground method when the app has, indeed, entered the background.<br />
The second does the same for entering the foreground.</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/05/ios-how-to-check-if-application-is-active/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS How To: Logging Time Intervals</title>
		<link>http://conecode.com/news/2012/04/ios-how-to-logging-time-intervals/</link>
		<comments>http://conecode.com/news/2012/04/ios-how-to-logging-time-intervals/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 17:50:16 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[NSTimeInterval]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=528</guid>
		<description><![CDATA[It&#8217;s always nice to know how well a method in your app is performing. Well here&#8217;s a quick tip on timing said methods. The result will output how long a method took from start to finish down to the millisecond. &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/04/ios-how-to-logging-time-intervals/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s always nice to know how well a method in your app is performing. Well here&#8217;s a quick tip on timing said methods. The result will output how long a method took from start to finish down to the millisecond.<span id="more-528"></span></p>
<p>First add the following to your .h file:</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1"><span class="kw5">NSDate</span> <span class="sy0">*</span>recordStart;</pre></div></div></div></div></div></div></div>


<p>Next, in the method you wish to time, add the follow code:</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1">recordStart <span class="sy0">=</span> <span class="br0">&#91;</span><span class="kw5">NSDate</span> date<span class="br0">&#93;</span>;
&nbsp;
<span class="co2">// The code you wish to time here</span>
&nbsp;
NSTimeInterval interval <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span><span class="kw5">NSDate</span> date<span class="br0">&#93;</span> timeIntervalSinceDate<span class="sy0">:</span>recordStart<span class="br0">&#93;</span>;
NSLog<span class="br0">&#40;</span><span class="co3">@</span><span class="st0">&quot;Stop Recording: %f&quot;</span>, interval<span class="br0">&#41;</span>;</pre></div></div></div></div></div></div></div>


]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/04/ios-how-to-logging-time-intervals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS How To: Stretch UIImage</title>
		<link>http://conecode.com/news/2012/04/ios-how-to-stretch-uiimage/</link>
		<comments>http://conecode.com/news/2012/04/ios-how-to-stretch-uiimage/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 20:44:42 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[UIImage]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=517</guid>
		<description><![CDATA[There is a quick and easy way to stretch an image inside an object without it distorting any curves or diagonal lines. The following method will stretch an image at a given X and/or Y position of the image file. &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/04/ios-how-to-stretch-uiimage/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://conecode.com/news/wp-content/uploads/2012/04/Screen-Shot-2012-04-25-at-1.41.43-PM.png"><img class="alignleft size-full wp-image-522" title="Stretch UIImage" src="http://conecode.com/news/wp-content/uploads/2012/04/Screen-Shot-2012-04-25-at-1.41.43-PM.png" alt="Stretch UIImage" width="290" height="130" /></a>There is a quick and easy way to stretch an image inside an object without it distorting any curves or diagonal lines. The following method will stretch an image at a given X and/or Y position of the image file. So you&#8217;ll want to find a spots that are straight horizontal or vertical lines. The code below will move in 20 pixels from the left and stretch the image at that point. So now you can include the buttonImage as the background image for any other object and it will stretch the image to look correctly no matter what the width.<span id="more-517"></span></p>
<p>The examples above are using the same image file.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1"><span class="co2">// Stretch an image</span>
UIImage <span class="sy0">*</span>buttonImage <span class="sy0">=</span> <span class="br0">&#91;</span><span class="br0">&#91;</span>UIImage imageNamed<span class="sy0">:</span><span class="co3">@</span><span class="st0">&quot;button.png&quot;</span><span class="br0">&#93;</span>
    stretchableImageWithLeftCapWidth<span class="sy0">:</span><span class="nu0">20</span> topCapHeight<span class="sy0">:</span><span class="nu0">0</span><span class="br0">&#93;</span>;</pre></div></div></div></div></div></div></div>


<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/04/ios-how-to-stretch-uiimage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now Las Vegas iPhone App Developers</title>
		<link>http://conecode.com/news/2012/04/now-las-vegas-iphone-developers/</link>
		<comments>http://conecode.com/news/2012/04/now-las-vegas-iphone-developers/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 19:35:54 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[Company News]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=502</guid>
		<description><![CDATA[When we started our humble little company nearly 3 years ago, we were primarily a web development and database management company. For the past year, however, we&#8217;ve added iPhone development to our skill set. We started out with our own &#8230; <div class="readmore"><a href="http://conecode.com/news/2012/04/now-las-vegas-iphone-developers/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p><a href="http://conecode.com/news/wp-content/uploads/2012/04/ConeCodePlusApps.png"><img class="alignleft size-medium wp-image-533" title="ConeCodePlusApps" src="http://conecode.com/news/wp-content/uploads/2012/04/ConeCodePlusApps-300x195.png" alt="Cone Code Plus Apps" width="300" height="195" /></a>When we started our humble little company nearly 3 years ago, we were primarily a web development and database management company. For the past year, however, we&#8217;ve added iPhone development to our skill set.</p>
<p>We started out with our own first app, <a title="Checklyst" href="http://itunes.apple.com/us/app/checklyst/id449657536?mt=8" target="_blank">Checklyst</a>. Shortly after that, we&#8217;ve released <a title="Memory Gizmo Words" href="http://itunes.apple.com/us/app/memory-gizmo-words/id452809584?mt=8" target="_blank">Memory Gizmo Words</a> and <a title="Memory Gizmo Math" href="http://itunes.apple.com/us/app/memory-gizmo-math/id457777326?mt=8" target="_blank">Math</a>. Our most popular app, <a title="Solitaire Poker" href="http://itunes.apple.com/us/app/solitaire-poker/id464306726?mt=8" target="_blank">Solitaire Poker</a>, was created in one week. There are several more exciting, full-featured apps currently in the pipeline.<span id="more-502"></span></p>
<p>We are now accepting iOS development projects. If you have an iOS app idea, let us know and we could help you make your idea a reality. We develop for any Portable Apple device.</p>
<p>If you required our services, just quickly fill out our form <a title="Contact Us" href="http://conecode.com/contact.php" target="_blank">HERE</a> or call us at (702) 714-0321.</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2012/04/now-las-vegas-iphone-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile Safari (UIWebView) Input Types</title>
		<link>http://conecode.com/news/2011/12/mobile-safari-uiwebview-input-types/</link>
		<comments>http://conecode.com/news/2011/12/mobile-safari-uiwebview-input-types/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 23:25:01 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[Web App]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[inputs]]></category>
		<category><![CDATA[UIWebView]]></category>
		<category><![CDATA[Web View]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=477</guid>
		<description><![CDATA[Did you know you could modify your website&#8217;s form input fields so that when viewed on an iOS device, it will bring up certain types of keyboards or other input elements? For instance, you could have an email field brings &#8230; <div class="readmore"><a href="http://conecode.com/news/2011/12/mobile-safari-uiwebview-input-types/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p>Did you know you could modify your website&#8217;s form input fields so that when viewed on an iOS device, it will bring up certain types of keyboards or other input elements?<br />
<span id="more-477"></span><br />
For instance, you could have an email field brings up a keyboard with the @ and . all on the same display as the letters.</p>
<p>Since iOS4, Apple has allowed you to specify certain input types that Mobile Safari (UIWebView) will read to present the correct input element. These are the types:</p>
<p>tel<br />
number<br />
url<br />
email<br />
date<br />
datetime<br />
time<br />
month<br />
range</p>
<p><strong>Phone Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;tel&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0132.png"><img class="alignnone size-medium wp-image-482" title="type=&quot;tel&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0132-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Number Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;number&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0133.png"><img class="alignnone size-medium wp-image-483" title="type=&quot;number&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0133-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>URL Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;url&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0134.png"><img class="alignnone size-medium wp-image-484" title="type=&quot;url&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0134-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Email Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;email&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0135.png"><img class="alignnone size-medium wp-image-485" title="type=&quot;email&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0135-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Date Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;date&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0136.png"><img class="alignnone size-medium wp-image-486" title="type=&quot;date&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0136-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Date/Time Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;datetime&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0137.png"><img class="alignnone size-medium wp-image-487" title="type=&quot;datetime&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0137-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Month Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;month&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0138.png"><img class="alignnone size-medium wp-image-488" title="type=&quot;month&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0138-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Time Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;time&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0139.png"><img class="alignnone size-medium wp-image-489" title="type=&quot;time&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0139-200x300.png" alt="" width="200" height="300" /></a></p>
<p><strong>Range Field:</strong></p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="html"><pre class="de1">&lt;input type=&quot;range&quot; &gt;</pre></div></div></div></div></div></div></div>


<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0140.png"><img class="alignnone size-medium wp-image-490" title="type=&quot;range&quot;" src="http://conecode.com/news/wp-content/uploads/2011/12/IMG_0140-200x300.png" alt="" width="200" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2011/12/mobile-safari-uiwebview-input-types/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add Texture To The UINavigationBar</title>
		<link>http://conecode.com/news/2011/12/add-texture-to-the-uinavigationbar/</link>
		<comments>http://conecode.com/news/2011/12/add-texture-to-the-uinavigationbar/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 18:48:38 +0000</pubDate>
		<dc:creator>Cone Code Team</dc:creator>
				<category><![CDATA[Apps]]></category>
		<category><![CDATA[iOS App Development for Beginners]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://conecode.com/news/?p=424</guid>
		<description><![CDATA[One thing iPhone designers love to do these days is add texture to the navigation bar.  Leather and wood grain texures are very popular.  Luckily for iPhone developers, it&#8217;s actually a very simple task to incorporate these images into our &#8230; <div class="readmore"><a href="http://conecode.com/news/2011/12/add-texture-to-the-uinavigationbar/">Continue reading <span class="meta-nav"></span></a></div>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-427" title="iOS Quick Tip" src="http://conecode.com/news/wp-content/uploads/2011/12/blog-post-image.png" alt="iPhone Development Quick Tip" width="200" height="200" /></p>
<p>One thing iPhone designers love to do these days is add texture to the navigation bar.  Leather and wood grain texures are very popular.  Luckily for iPhone developers, it&#8217;s actually a very simple task to incorporate these images into our Apps.  In this iOS Quick Tip.  I&#8217;m going to show you how add textures to your iPhone app Navigation Bar.</p>
<p><span id="more-424"></span></p>
<p><span style="color: #ff0000; clear: both;">1.</span> We&#8217;re going to start by creating a new project in XCode. In the File menu choose New Project. Choose the Master-Detail Application and click Next. Name your new project NavBarTexture and click Next again.</p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_1A.png"><img class="alignnone size-full wp-image-428" title="Choose iOS Template" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_1A.png" alt="Choose the Master-Detail Application" width="400" height="320" /></a></p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_1B.png"><img class="alignnone size-full wp-image-429" title="Name the iPhone App" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_1B.png" alt="Enter the name of the iPhone App" width="400" height="320" /></a></p>
<p><span style="color: #ff0000;">2.</span> Now we have to add the texture images to the project. I&#8217;ve created two 24-bit PNG images for each texture I&#8217;m going to demonstrate in this project. One is 640&#215;88 pixles for the retina display screens and the other is 320 x 44 for older iPhones and iPods. Notice that the name of the images match except the larger retina display images end with @2x.</p>
<p>I like to keep my images in a group called images under Supporting Files. You can create this group by Ctl+Click on the Supporting Files group and choose New Group. Then rename the group &#8220;images&#8221;.</p>
<p>Now we can drag and drop the images into the new image group.</p>
<p><img class="alignnone size-full wp-image-430" title="Insert Texture Images" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_2A.png" alt="Drag PNG files into the project" width="400" height="320" /></p>
<p>Make sure the option to Copy items into the destinations group&#8217;s folder is selected.</p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_2B.png"><img class="alignnone size-full wp-image-431" title="Choose options" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_2B.png" alt="Check copy items into destination..." width="400" height="320" /></a></p>
<p><span style="color: #ff0000;">3.</span> Finally we&#8217;re going to add the code that applys the images to the Navigation Bar. Enter the code you see below into viewDidLoad method in the MasterViewController.m file.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1"><span class="co2">// change the color of the navigation bar.</span>
UINavigationBar <span class="sy0">*</span>navigationBar <span class="sy0">=</span> self.navigationController.navigationBar;
UIImage <span class="sy0">*</span>image <span class="sy0">=</span> <span class="br0">&#91;</span>UIImage imageNamed<span class="sy0">:</span> <span class="co3">@</span><span class="st0">&quot;NavBar-Wood.png&quot;</span><span class="br0">&#93;</span>;
<span class="br0">&#91;</span>navigationBar setBackgroundImage<span class="sy0">:</span>image forBarMetrics<span class="sy0">:</span> UIBarMetricsDefault<span class="br0">&#93;</span>;
self.navigationController.navigationBar.tintColor <span class="sy0">=</span> <span class="br0">&#91;</span>UIColor brownColor<span class="br0">&#93;</span>;</pre></div></div></div></div></div></div></div>


<p>This code will set a variable for the navigation bar and another variable for the image we&#8217;ll be using as our texture.  In this case, it&#8217;s the NavBar-Wood.png image.  It then sets the image as the background for the navigation bar.  The last line will change the tintColor of the navigation buttons.  This is to make them match the image a little bit better.</p>
<p>To change the texture to one of the other examples, all you have to do is change the second line of code where it assigns the PNG file.</p>


<div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="objc"><pre class="de1">UIImage <span class="sy0">*</span>image <span class="sy0">=</span> <span class="br0">&#91;</span>UIImage imageNamed<span class="sy0">:</span> <span class="co3">@</span><span class="st0">&quot;NavBar-Leather.png&quot;</span><span class="br0">&#93;</span>;</pre></div></div></div></div></div></div></div>


<p>Here are the screenshots of all three textures.</p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4A.png"><img class="alignnone size-full wp-image-432" title="iPhone Screenshot Wood Texture" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4A.png" alt="UINavigation with wood texture" width="400" height="320" /></a></p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4B.png"><img class="alignnone size-full wp-image-433" title="iPhone Screenshot Leather Texture" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4B.png" alt="UINavigation with leather texture" width="400" height="320" /></a></p>
<p>&nbsp;</p>
<p><a href="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4C.png"><img class="alignnone size-full wp-image-434" title="iPhone Screenshot Cardboard Texture" src="http://conecode.com/news/wp-content/uploads/2011/12/NavBarScreen_4C.png" alt="UINavigation with cardboard texture" width="400" height="320" /></a></p>
<p>You can download these texture and the PSD file <a title="Free UINavigationBar Textures" href="http://conecode.com/news/wp-content/uploads/2011/12/NavBar-Textures.zip">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://conecode.com/news/2011/12/add-texture-to-the-uinavigationbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

