<?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>Seree Woradechjamroen &#187; IPhone development</title>
	<atom:link href="http://www.iamseree.com/category/iphone-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamseree.com</link>
	<description>Keep learning everyday, willing to win and take action</description>
	<lastBuildDate>Fri, 23 Jul 2010 16:58:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Decode HTML characters in iPhone SDK with Objective-C</title>
		<link>http://www.iamseree.com/iphone-development/decode-html-characters-in-iphone-sdk-with-objective-c/</link>
		<comments>http://www.iamseree.com/iphone-development/decode-html-characters-in-iphone-sdk-with-objective-c/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:56:31 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/decode-html-characters-in-iphone-sdk-with-objective-c/</guid>
		<description><![CDATA[Just create an interface by following this code. @interface MREntitiesConverter : NSObject { NSMutableString* resultString;}@property (nonatomic, retain) NSMutableString* resultString;- (NSString*)convertEntiesInString:(NSString*)s;@end @implementation MREntitiesConverter@synthesize resultString;- (id)init{ if([super init]) { //resultString = [[NSMutableString alloc] init]; } return self;}- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)s { [self.resultString appendString:s];}- (NSString*)convertEntiesInString:(NSString*)s { if(s == nil) { NSLog(@&#8221;ERROR : Parameter string is nil&#8221;); } ...]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Just create an interface by following this code.</p>
<blockquote style="clear: both"><p><foundation/foundation.h><foundation/foundation.h>@interface MREntitiesConverter : NSObject {<br /> NSMutableString* resultString;<br />}<br />@property (nonatomic, retain) NSMutableString* resultString;<br />- (NSString*)convertEntiesInString:(NSString*)s;<br />@end</p>
<p>@implementation MREntitiesConverter<br />@synthesize resultString;<br />- (id)init<br />{<br /> if([super init]) {<br /> //resultString = [[NSMutableString alloc] init];<br /> }<br /> return self;<br />}<br />- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)s {<br /> [self.resultString appendString:s];<br />}<br />- (NSString*)convertEntiesInString:(NSString*)s {<br /> if(s == nil) {<br /> NSLog(@&#8221;ERROR : Parameter string is nil&#8221;);<br /> }<br /> resultString = [[NSMutableString alloc] init];<br /> NSString* xmlStr = [NSString stringWithFormat:@"<d>%@</d>", s];<br /> NSData *data = [xmlStr dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];<br /> NSXMLParser* xmlParse = [[NSXMLParser alloc] initWithData:data];<br /> [xmlParse setDelegate:self];<br /> [xmlParse parse];<br /> NSString* returnStr = [[NSString alloc] initWithFormat:@&#8221;%@&#8221;,resultString];<br /> [resultString release];<br /> return returnStr;<br />}<br />- (void)dealloc {<br /> //[resultString release];<br /> [super dealloc];<br />}<br />@end</foundation/foundation.h></foundation/foundation.h></p>
</blockquote>
<p style="clear: both">When you want to decode HTML characters within a string, just call the app like this.</p>
<blockquote style="clear: both"><p>MREntitiesConverter *converter = [[MREntitiesConverter alloc] init];<br />someStr = [converter convertEntiesInString:@"abcdefghiijXXXYZ<abcdefg>"];<br />[converter release];</abcdefg></p>
</blockquote>
<p style="clear: both">Easy enough? <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/decode-html-characters-in-iphone-sdk-with-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Showing UIAlertView on cocos2d Scene/Layer</title>
		<link>http://www.iamseree.com/iphone-development/showing-uialertview-on-cocos2d-scenelayer/</link>
		<comments>http://www.iamseree.com/iphone-development/showing-uialertview-on-cocos2d-scenelayer/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 17:29:20 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/showing-uialertview-on-cocos2d-scenelayer/</guid>
		<description><![CDATA[This can be done easily just like when you are working with the standard ViewController. Here is the sample code&#8230; UIAlertView *alert = [[UIAlertView alloc] init]; [alert setTitle:@"My Title"]; [alert setMessage:@"My message"]; [alert setDelegate:self]; [alert addButtonWithTitle:@"OK"]; [alert addButtonWithTitle:@"Cancel"]; [alert show]; [alert release]; With this, you can detect which button was pressed by handling the alertView ...]]></description>
			<content:encoded><![CDATA[<p style="clear: both">This can be done easily just like when you are working with the standard ViewController.</p>
<p style="clear: both">
<p style="clear: both">
<div>Here is the sample code&#8230;</div>
</p>
<blockquote style="clear: both"><p>UIAlertView *alert = [[UIAlertView alloc] init];<br /> [alert setTitle:@"My Title"]; <br /> [alert setMessage:@"My message"];<br /> [alert setDelegate:self];<br /> [alert addButtonWithTitle:@"OK"];<br /> [alert addButtonWithTitle:@"Cancel"];<br /> [alert show];<br /> [alert release];</p>
</blockquote>
<p style="clear: both">With this, you can detect which button was pressed by handling the <strong>alertView</strong> message like this.</p>
<blockquote style="clear: both"><p>-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex<br />{<br /> if (buttonIndex == 0)<br /> {<br /> // Yes, do something<br /> }<br /> else if (buttonIndex == 1)<br /> {<br /> // No<br /> }<br />}</p>
</blockquote>
<p style="clear: both">And when I do this in my game, I&#8217;ll pause the game first and resume when player pushed on the button. This can be done easily via <strong>sharedDirector</strong> as well.</p>
<blockquote style="clear: both"><p>[[Director sharedDirector] pause]; //Pause your game<br />[[Director sharedDirector] resume]; //Resume your game</p>
</blockquote>
<p style="clear: both">Hope you enjoy!</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/showing-uialertview-on-cocos2d-scenelayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The most easiest method to add a splash screen for your iPhone application</title>
		<link>http://www.iamseree.com/iphone-development/the-most-easiest-method-to-add-a-splash-screen-for-your-iphone-application/</link>
		<comments>http://www.iamseree.com/iphone-development/the-most-easiest-method-to-add-a-splash-screen-for-your-iphone-application/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 15:47:07 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/the-most-easiest-method-to-add-a-splash-screen-for-your-iphone-application/</guid>
		<description><![CDATA[Well done, I don&#8217;t know if there is any other framework that let you add a splash screen easier than the iPhone SDK or not. I never see it. What you want to do is just creating your splash screen image in PNG format which have 320&#215;480 resolution for portrait or 480&#215;320 if your app ...]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Well done, I don&#8217;t know if there is any other framework that let you add a splash screen easier than the iPhone SDK or not. I never see it.</p>
<p style="clear: both">What you want to do is just creating your splash screen image in PNG format which have 320&#215;480 resolution for portrait or 480&#215;320 if your app is running on landscape orientation.</p>
<p style="clear: both">Then name it &#8220;Default.png&#8221;, please note that you have to name it &#8220;Default.png&#8221; not &#8220;default.png&#8221;. It&#8217;s case sensitive.</p>
<p style="clear: both">Then just put the file into your project and it&#8217;s DONE!</p>
<p style="clear: both">You will see your splash screen until your first view was loaded successfully. </p>
<p style="clear: both">Short &#038; Sweet?<br /> <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/the-most-easiest-method-to-add-a-splash-screen-for-your-iphone-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Prevent your iPhone app from entering into Sleep/Standby mode</title>
		<link>http://www.iamseree.com/iphone-development/prevent-your-iphone-app-from-entering-into-sleepstandby-mode/</link>
		<comments>http://www.iamseree.com/iphone-development/prevent-your-iphone-app-from-entering-into-sleepstandby-mode/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 17:32:36 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/prevent-your-iphone-app-from-entering-into-sleepstandby-mode/</guid>
		<description><![CDATA[I&#8217;m not quite sure why it&#8217;s so easy than I ever think of. But it is! [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; It just disables the Idle Timer of iPhone OS for my application. Sweet!]]></description>
			<content:encoded><![CDATA[<p style="clear: both">I&#8217;m not quite sure why it&#8217;s so easy than I ever think of. But it is!</p>
<blockquote style="clear: both"><p>[[UIApplication sharedApplication] setIdleTimerDisabled:YES];</p>
</blockquote>
<p style="clear: both">It just disables the Idle Timer of iPhone OS for my application.</p>
<p style="clear: both">Sweet! <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/prevent-your-iphone-app-from-entering-into-sleepstandby-mode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to capture a screenshot for your app by the app itself</title>
		<link>http://www.iamseree.com/iphone-development/how-to-capture-a-screenshot-for-your-app-by-the-app-itself/</link>
		<comments>http://www.iamseree.com/iphone-development/how-to-capture-a-screenshot-for-your-app-by-the-app-itself/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 14:41:09 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/how-to-capture-a-screenshot-for-your-app-by-the-app-itself/</guid>
		<description><![CDATA[It just likes what you did by running the app and hold the stand-by button then push on the home button. When you run this code, it will capture the current screenshot and add into the Camera Roll. It&#8217;s not yet included in the official SDK but you can get it run easily. @interface UIApplication ...]]></description>
			<content:encoded><![CDATA[<p style="clear: both">It just likes what you did by running the app and hold the stand-by button then push on the home button.</p>
<p style="clear: both">When you run this code, it will capture the current screenshot and add into the Camera Roll.</p>
<p style="clear: both">It&#8217;s not yet included in the official SDK but you can get it run easily.</p>
<blockquote style="clear: both"><p>@interface UIApplication (Extended)<br />-(void) _writeApplicationSnapshot;<br />@end<br />[[UIApplication sharedApplication] _writeApplicationSnapshot];</p>
</blockquote>
<p style="clear: both">Yo!</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/how-to-capture-a-screenshot-for-your-app-by-the-app-itself/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone screen resolution for developers and graphic designers</title>
		<link>http://www.iamseree.com/iphone-development/iphone-screen-resolution-for-developers-and-graphic-designers/</link>
		<comments>http://www.iamseree.com/iphone-development/iphone-screen-resolution-for-developers-and-graphic-designers/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 15:58:43 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[IPhone development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/general/iphone-screen-resolution-for-developers-and-graphic-designers/</guid>
		<description><![CDATA[Credited to &#8220;The iPhone Developer&#8217;s Cookbook&#8221; which I think is the best book for beginner to getting started on iPhone SDK development.]]></description>
			<content:encoded><![CDATA[<p style="clear: both"><a class="image-link" href="http://www.iamseree.com/wp-content/uploads/2009/07/PortraitDimension-full.png"><img class="linked-to-original" style=" display: inline; float: left; margin: 0 10px 10px 0;" src="http://www.iamseree.com/wp-content/uploads/2009/07/PortraitDimension-thumb.png" alt="" width="300" height="446" align="left" /></a></p>
<p style="clear: both"><a class="image-link" href="http://www.iamseree.com/wp-content/uploads/2009/07/LandscapeDimension-full.png"><img class="linked-to-original" style=" display: inline; float: left; margin: 0 10px 10px 0;" src="http://www.iamseree.com/wp-content/uploads/2009/07/LandscapeDimension-thumb.png" alt="" width="380" height="256" align="left" /></a><br style="clear: both" />Credited to &#8220;The iPhone Developer&#8217;s Cookbook&#8221; which I think is the best book for beginner to getting started on iPhone SDK development. <img src='http://www.iamseree.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/iphone-development/iphone-screen-resolution-for-developers-and-graphic-designers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
