<?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>Chris Danielson&#039;s Blog &#187; Apple</title>
	<atom:link href="http://www.chrisdanielson.com/tag/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisdanielson.com</link>
	<description>Trials and Tribulations of a Software Developer</description>
	<lastBuildDate>Tue, 10 Aug 2010 15:38:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPhone users able to build a shinier world, one turd at a time</title>
		<link>http://www.chrisdanielson.com/2010/05/25/iphone-users-able-to-build-a-shinier-world-one-turd-at-a-time/</link>
		<comments>http://www.chrisdanielson.com/2010/05/25/iphone-users-able-to-build-a-shinier-world-one-turd-at-a-time/#comments</comments>
		<pubDate>Tue, 25 May 2010 20:27:16 +0000</pubDate>
		<dc:creator>Chris Danielson</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod touch]]></category>
		<category><![CDATA[Polish It]]></category>
		<category><![CDATA[Turd Polishing]]></category>

		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=365</guid>
		<description><![CDATA[Turd Polishing has hit the iPhone with a splatter.]]></description>
			<content:encoded><![CDATA[<p>This blog usually focuses on software development, but I can&#8217;t  resist sharing this with all of you out there.  Have a good laugh!</p>
<p><strong>MaxPowerSoft Puts a New Polish on an Old Adage: You Actually Can  Polish a Turd</strong></p>
<p><object width="425" height="355" type="application/x-shockwave-flash" data="http://www.youtube.com/v/6kZxC1WCk3Y"><param name="movie" value="http://www.youtube.com/v/6kZxC1WCk3Y" />This video was embedded using the YouTuber plugin by <a href="http://www.roytanck.com">Roy Tanck</a>. Adobe Flash Player is required to view the video.</object></p>
<p>&#8216;<strong><a href="http://itunes.apple.com/us/app/polish-it/id345199287?mt=8">Polish It</a>&#8216;</strong> now available at the iPhone App Store</p>
<p>SAN DIEGO, CA (May 24, 2010) &#8211; MaxPowerSoft (www.maxpowersoft.com) today announced the release of Polish It, an iPhone application designed to facilitate &#8220;a shinier world, one turd at a time&#8221;. Available for $0.99 at Apple&#8217;s iPhone App Store, ‘Polish It’ is both a literal and cute/comedic take on the old and well-known phrase “You can’t polish a turd”. Your goal is simple: Choose a turd you like, and polish it! Utilize the touchscreen and your finger for polishing, tilt the phone to maneuver, and snap a photo at anytime to share.</p>
<p>&#8220;We wanted to reach out and give frustrated workers, students, and really all curious people in general, the powerful ability to truly polish a turd,&#8221; says Nic Danielson, Director of Marketing. &#8220;MaxPowerSoft has created an innovative new technology that allows one to therapeutically accomplish the task of polishing turds in the palm of your hand, no matter where you are, and on a whim to boot &#8211; most importantly, it can be done without the need for any sanitization processes.  There really is nothing else like it in the market, or the world for that matter.&#8221;</p>
<p>Features of Polish It include:</p>
<ul>
<li>Objects rendered in full 3D.</li>
<li>Choose from over 10 objects to polish.</li>
<li>Simple controls: Touch to polish, Tilt phone to maneuver.</li>
<li>Snap a photo and send to your friends.</li>
<li>More features to come.</li>
</ul>
<p>Pricing and Availability:</p>
<p>Polish It is available for $0.99 at the iPhone App Store:</p>
<p><a href="http://itunes.apple.com/us/app/polish-it/id345199287?mt=8">http://itunes.apple.com/us/app/polish-it/id345199287?mt=8</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisdanielson.com/2010/05/25/iphone-users-able-to-build-a-shinier-world-one-turd-at-a-time/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apple iPhone Web Kit with Activity Indicator</title>
		<link>http://www.chrisdanielson.com/2009/12/04/apple-iphone-web-kit-with-activity-indicator/</link>
		<comments>http://www.chrisdanielson.com/2009/12/04/apple-iphone-web-kit-with-activity-indicator/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 16:38:43 +0000</pubDate>
		<dc:creator>Chris Danielson</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[UIActivityIndicatorView]]></category>
		<category><![CDATA[UIWebView]]></category>
		<category><![CDATA[Web Kit]]></category>
		<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://www.chrisdanielson.com/?p=290</guid>
		<description><![CDATA[Welcome to the club of searching for an overly simple UIWebView a.k.a. WebKit example! In this example, I&#8217;ll show you simply how to hand code a quick UIWebView into your program as well as to add a UIActivityIndicatorView a.k.a. an activity indicator. Without jabbing Apple too hard here, the documentation is pretty bad and that [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the club of searching for an overly simple UIWebView a.k.a. WebKit example!  In this example, I&#8217;ll show you simply how to hand code a quick UIWebView into your program as well as to add a UIActivityIndicatorView a.k.a. an activity indicator.  Without jabbing Apple too hard here, the documentation is pretty bad and that is why it&#8217;s nice to have an example just shown to you as-is.  I hope this example helps shine a light on the situation for anyone wanting to implement a nice and quick Apple iPhone WebKit solution.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p290code3'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2903"><td class="code" id="p290code3"><pre class="objc" style="font-family:monospace;">&nbsp;
<span style="color: #6e371a;">#import &lt;UIKit/UIKit.h&gt;</span>
&nbsp;
<span style="color: #a61390;">@interface</span> FirstViewController <span style="color: #002200;">:</span> UIViewController &lt;UIWebViewDelegate&gt;
<span style="color: #002200;">&#123;</span>
	UIWebView <span style="color: #002200;">*</span>myWebView;
	UIActivityIndicatorView <span style="color: #002200;">*</span>activityIndicator;	
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p290code4'); return false;">View Code</a> OBJC</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2904"><td class="code" id="p290code4"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">/*
Inside the @implementation FirstViewController ... 
*/</span>
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>viewDidLoad <span style="color: #002200;">&#123;</span> <span style="color: #11740a; font-style: italic;">//We have a NIB file in play here, so I dropped the loadView here.  Just make sure that your loadView is not getting called twice!</span>
    <span style="color: #002200;">&#91;</span>super viewDidLoad<span style="color: #002200;">&#93;</span>;
    <span style="color: #002200;">&#91;</span>self loadView<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>loadView <span style="color: #002200;">&#123;</span>
	UIView <span style="color: #002200;">*</span>contentView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIView alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIScreen mainScreen<span style="color: #002200;">&#93;</span> applicationFrame<span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
	self.view <span style="color: #002200;">=</span> contentView;	
&nbsp;
	CGRect webFrame <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIScreen mainScreen<span style="color: #002200;">&#93;</span> applicationFrame<span style="color: #002200;">&#93;</span>;
	webFrame.origin.y <span style="color: #002200;">=</span> 0.0f;
	myWebView <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIWebView alloc<span style="color: #002200;">&#93;</span> initWithFrame<span style="color: #002200;">:</span>webFrame<span style="color: #002200;">&#93;</span>;
	myWebView.backgroundColor <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>UIColor blueColor<span style="color: #002200;">&#93;</span>;
	myWebView.scalesPageToFit <span style="color: #002200;">=</span> <span style="color: #a61390;">YES</span>;
	myWebView.autoresizingMask <span style="color: #002200;">=</span> <span style="color: #002200;">&#40;</span>UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight<span style="color: #002200;">&#41;</span>;
	myWebView.delegate <span style="color: #002200;">=</span> self;
	<span style="color: #002200;">&#91;</span>self.view addSubview<span style="color: #002200;">:</span> myWebView<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>myWebView loadRequest<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLRequest_Class/"><span style="color: #400080;">NSURLRequest</span></a> requestWithURL<span style="color: #002200;">:</span><span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/"><span style="color: #400080;">NSURL</span></a> URLWithString<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;http://www.maxpowersoft.com/&quot;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span><span style="color: #002200;">&#93;</span>;
&nbsp;
	activityIndicator <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><span style="color: #002200;">&#91;</span>UIActivityIndicatorView alloc<span style="color: #002200;">&#93;</span>initWithActivityIndicatorStyle<span style="color: #002200;">:</span>UIActivityIndicatorViewStyleGray<span style="color: #002200;">&#93;</span>;
	activityIndicator.frame <span style="color: #002200;">=</span> CGRectMake<span style="color: #002200;">&#40;</span><span style="color: #2400d9;">0.0</span>, <span style="color: #2400d9;">0.0</span>, <span style="color: #2400d9;">40.0</span>, <span style="color: #2400d9;">40.0</span><span style="color: #002200;">&#41;</span>;
	activityIndicator.center <span style="color: #002200;">=</span> self.view.center;
	<span style="color: #002200;">&#91;</span>self.view addSubview<span style="color: #002200;">:</span> activityIndicator<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>dealloc <span style="color: #002200;">&#123;</span>
	<span style="color: #002200;">&#91;</span>activityIndicator release<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>myWebView release<span style="color: #002200;">&#93;</span>;
        <span style="color: #002200;">&#91;</span>super dealloc<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #6e371a;">#pragma mark WEBVIEW Methods</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>webViewDidStartLoad<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIWebView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>webView
<span style="color: #002200;">&#123;</span>
	<span style="color: #11740a; font-style: italic;">// starting the load, show the activity indicator in the status bar</span>
	<span style="color: #002200;">&#91;</span>UIApplication sharedApplication<span style="color: #002200;">&#93;</span>.networkActivityIndicatorVisible <span style="color: #002200;">=</span> <span style="color: #a61390;">YES</span>;
	<span style="color: #002200;">&#91;</span>activityIndicator startAnimating<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>webViewDidFinishLoad<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIWebView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>webView
<span style="color: #002200;">&#123;</span>
	<span style="color: #11740a; font-style: italic;">// finished loading, hide the activity indicator in the status bar</span>
	<span style="color: #002200;">&#91;</span>UIApplication sharedApplication<span style="color: #002200;">&#93;</span>.networkActivityIndicatorVisible <span style="color: #002200;">=</span> <span style="color: #a61390;">NO</span>;
	<span style="color: #002200;">&#91;</span>activityIndicator stopAnimating<span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span>
&nbsp;
<span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">&#41;</span>webView<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span>UIWebView <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>webView didFailLoadWithError<span style="color: #002200;">:</span><span style="color: #002200;">&#40;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/"><span style="color: #400080;">NSError</span></a> <span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>error
<span style="color: #002200;">&#123;</span>
	<span style="color: #11740a; font-style: italic;">// load error, hide the activity indicator in the status bar</span>
	<span style="color: #002200;">&#91;</span>UIApplication sharedApplication<span style="color: #002200;">&#93;</span>.networkActivityIndicatorVisible <span style="color: #002200;">=</span> <span style="color: #a61390;">NO</span>;
&nbsp;
	<span style="color: #11740a; font-style: italic;">// report the error inside the webview</span>
	<a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a><span style="color: #002200;">*</span> errorString <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/"><span style="color: #400080;">NSString</span></a> stringWithFormat<span style="color: #002200;">:</span>
							 <span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;&lt;html&gt;&lt;center&gt;&lt;br /&gt;&lt;br /&gt;&lt;font size=+5 color='red'&gt;Error&lt;br /&gt;&lt;br /&gt;Your request %@&lt;/font&gt;&lt;/center&gt;&lt;/html&gt;&quot;</span>,
							 error.localizedDescription<span style="color: #002200;">&#93;</span>;
	<span style="color: #002200;">&#91;</span>myWebView loadHTMLString<span style="color: #002200;">:</span>errorString baseURL<span style="color: #002200;">:</span><span style="color: #a61390;">nil</span><span style="color: #002200;">&#93;</span>;
<span style="color: #002200;">&#125;</span></pre></td></tr></table></div>

<p>That is all there is to it.  It&#8217;s really simple as you can see.  Feel free to copy and paste accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisdanielson.com/2009/12/04/apple-iphone-web-kit-with-activity-indicator/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
