<?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>James Border</title>
	<atom:link href="http://jamesborder.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesborder.com</link>
	<description>Interactive/Mobile/iOS Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:17:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Objective-C PNG Sequence</title>
		<link>http://jamesborder.com/2012/02/objective-c-png-sequence/</link>
		<comments>http://jamesborder.com/2012/02/objective-c-png-sequence/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 03:17:49 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=994</guid>
		<description><![CDATA[NSMutableArray *imageArray = [[NSMutableArray alloc]init]; for (int i = 1; iy]]></description>
			<content:encoded><![CDATA[<p>	NSMutableArray *imageArray = [[NSMutableArray alloc]init];</p>
<p>	for (int i = 1; iy <= 40; i++) {<br />
		[imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"s%02i.png", i]]];<br />
	}</p>
<p>	UIImageView * ryuJump = [[[UIImageView alloc] initWithFrame:<br />
							 CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)]autorelease];<br />
	ryuJump.animationImages = imageArray;<br />
	ryuJump.animationDuration = 2.1;<br />
	ryuJump.contentMode = UIViewContentModeCenter;</p>
<p>	[someview addSubview:ryuJump];</p>
<p>	[ryuJump startAnimating];<br />
	[imageArray release];</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2012/02/objective-c-png-sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C urlencode/urldecode</title>
		<link>http://jamesborder.com/2012/02/objective-c-urlencodeurldecode/</link>
		<comments>http://jamesborder.com/2012/02/objective-c-urlencodeurldecode/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 19:03:47 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=991</guid>
		<description><![CDATA[-(NSString*)urlEncoded:(NSString*)str { NSString *escapedUrlString = [str stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; return escapedUrlString; } -(NSString*)urlDecoded:(NSString*)str { NSString *cleanUrlString = [str stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; return cleanUrlString; } NSString *devStr = @&#8221;http://localhost/dri/json?foo=#bar&#038;something=true&#038;miscc=Foo bar!&#8221;; NSLog(@&#8221;devStr: %@&#8221;,devStr); NSString *encString = [self urlEncoded:devStr]; NSLog(@&#8221;encString: %@&#8221;,encString); NSString *decString = [self urlDecoded:encString]; NSLog(@&#8221;decString: %@&#8221;,decString);]]></description>
			<content:encoded><![CDATA[<p>-(NSString*)urlEncoded:(NSString*)str {</p>
<p>    NSString *escapedUrlString = [str stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];<br />
    return escapedUrlString;</p>
<p>}</p>
<p>-(NSString*)urlDecoded:(NSString*)str {</p>
<p>    NSString *cleanUrlString =  [str stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding];<br />
    return cleanUrlString;</p>
<p>}</p>
<p>    NSString *devStr = @&#8221;http://localhost/dri/json?foo=#bar&#038;something=true&#038;miscc=Foo bar!&#8221;;</p>
<p>    NSLog(@&#8221;devStr: %@&#8221;,devStr);</p>
<p>    NSString *encString = [self urlEncoded:devStr];<br />
    NSLog(@&#8221;encString: %@&#8221;,encString);</p>
<p>    NSString *decString = [self urlDecoded:encString];<br />
    NSLog(@&#8221;decString: %@&#8221;,decString);</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2012/02/objective-c-urlencodeurldecode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C UIImage -&gt; UIImageView</title>
		<link>http://jamesborder.com/2012/02/objective-c-uiimage-uiimageview/</link>
		<comments>http://jamesborder.com/2012/02/objective-c-uiimage-uiimageview/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 05:27:07 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=988</guid>
		<description><![CDATA[UIImage *image = [UIImage imageNamed:@"greatimage.png"]; UIImageView *imgView = [[UIImageView alloc] initWithImage:image]; imgView.frame = CGRectMake(0, 0, 320, 90); [self.view addSubview:imgView]; [imgView release];]]></description>
			<content:encoded><![CDATA[<p>	UIImage *image = [UIImage imageNamed:@"greatimage.png"];<br />
	UIImageView *imgView = [[UIImageView alloc] initWithImage:image];<br />
	imgView.frame = CGRectMake(0, 0, 320, 90);<br />
	[self.view addSubview:imgView];<br />
	[imgView release];</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2012/02/objective-c-uiimage-uiimageview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C UIButton</title>
		<link>http://jamesborder.com/2012/02/objective-c-uibutton/</link>
		<comments>http://jamesborder.com/2012/02/objective-c-uibutton/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 05:16:48 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=984</guid>
		<description><![CDATA[// a button UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button addTarget:self action:@selector(targetMethod:) forControlEvents:UIControlEventTouchDown]; [button setTitle:@"Show View" forState:UIControlStateNormal]; button.frame = CGRectMake(0.0, 0.0, 160.0, 40.0); [self.view addSubview:button]; //////////////////////////////////////// // Button with background images //////////////////////////////////////// UIButton *bttn = [UIButton buttonWithType:UIButtonTypeCustom]; bttn.frame = CGRectMake(0, 200, 97, 38); [bttn setTitle:@"Dev One" forState:UIControlStateNormal]; [bttn addTarget:self action:@selector(targetMethod:) forControlEvents:UIControlEventTouchUpInside]; UIImage *bttnImageNormal = [UIImage imageNamed:@"button.png"]; <a href='http://jamesborder.com/2012/02/objective-c-uibutton/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>// a button<br />
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];<br />
[button addTarget:self action:@selector(targetMethod:) forControlEvents:UIControlEventTouchDown];<br />
[button setTitle:@"Show View" forState:UIControlStateNormal];<br />
button.frame = CGRectMake(0.0, 0.0, 160.0, 40.0);<br />
[self.view addSubview:button];</p>
<p>////////////////////////////////////////<br />
// Button with background images<br />
////////////////////////////////////////</p>
<p>UIButton *bttn = [UIButton buttonWithType:UIButtonTypeCustom];<br />
bttn.frame = CGRectMake(0, 200, 97, 38);<br />
[bttn setTitle:@"Dev One" forState:UIControlStateNormal];<br />
[bttn addTarget:self action:@selector(targetMethod:) forControlEvents:UIControlEventTouchUpInside];</p>
<p>UIImage *bttnImageNormal = [UIImage imageNamed:@"button.png"];<br />
[bttn setImage:bttnImageNormal forState:UIControlStateNormal];</p>
<p>UIImage *bttnImageSelected = [UIImage imageNamed:@"button-selected.png"];<br />
[bttn setImage:bttnImageSelected forState:UIControlStateHighlighted];</p>
<p>[self.view addSubview:bttn];</p>
<p>-(IBAction)targetMethod:(id)sender {</p>
<p>	NSLog(@&#8221;targetMethod&#8221;);</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2012/02/objective-c-uibutton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C Remote Plist -&gt; Dictionary -&gt; NSUserDefaults</title>
		<link>http://jamesborder.com/2012/01/objective-c-remote-plist-dictionary-nsuserdefaults/</link>
		<comments>http://jamesborder.com/2012/01/objective-c-remote-plist-dictionary-nsuserdefaults/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 20:10:19 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=974</guid>
		<description><![CDATA[#import &#60;Foundation/Foundation.h> @interface RemotePreferences : NSObject { NSMutableData *incomingData; } @end @implementation RemotePreferences -(id)init { self = [super init]; if (self) { NSURL *url = [NSURL URLWithString: @"http://example.com/configs.plist"]; NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:30.0]; __unused NSURLConnection *fetchConn = [[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease]; } return self; } - (void)connection:(NSURLConnection *)sender didReceiveData:(NSData *)data { if <a href='http://jamesborder.com/2012/01/objective-c-remote-plist-dictionary-nsuserdefaults/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><code>#import &lt;Foundation/Foundation.h></p>
<p>@interface RemotePreferences : NSObject {<br />
	NSMutableData *incomingData;<br />
}</p>
<p>@end</p>
<p>@implementation RemotePreferences</p>
<p>-(id)init {</p>
<p>    self = [super init];</p>
<p>    if (self) {</p>
<p>		NSURL *url = [NSURL URLWithString: @"http://example.com/configs.plist"];<br />
		NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:30.0];<br />
		__unused NSURLConnection *fetchConn = [[[NSURLConnection alloc] initWithRequest:request delegate:self] autorelease];</p>
<p>    }</p>
<p>    return self;	</p>
<p>}</p>
<p>- (void)connection:(NSURLConnection *)sender didReceiveData:(NSData *)data {</p>
<p>	if (!incomingData) {<br />
		incomingData = [[NSMutableData alloc] init];<br />
	}</p>
<p>	[incomingData appendData:data];</p>
<p>}</p>
<p>- (void)connectionDidFinishLoading:(NSURLConnection *)sender {</p>
<p>	NSDictionary *prefsDict = [[[NSDictionary alloc] init] autorelease];<br />
	prefsDict = [NSPropertyListSerialization propertyListFromData:incomingData mutabilityOption:NSPropertyListImmutable format:nil errorDescription:nil];</p>
<p>	[[NSUserDefaults standardUserDefaults] registerDefaults:prefsDict];</p>
<p>	// NSLog(@"NSUserDefaults dump: %@", [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);</p>
<p>}</p>
<p>- (void)connection:(NSURLConnection *)sender didFailWithError:(NSError *)error {<br />
	NSLog(@"connection failed: %@", [error localizedDescription]);<br />
}</p>
<p>-(void)dealloc {<br />
	FuncLog();</p>
<p>    [super dealloc];</p>
<p>	[incomingData release];<br />
	incomingData = nil;</p>
<p>}</p>
<p>//- (NSURLRequest *)connection:(NSURLConnection *)c willSendRequest:(NSURLRequest *)req redirectResponse:(NSURLResponse *)res {}<br />
//- (void)connection:(NSURLConnection *)sender didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)ch {}<br />
//- (NSCachedURLResponse *)connection:(NSURLConnection *)sender willCacheResponse:(NSCachedURLResponse *)cachedResponse{}</p>
<p>@end<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2012/01/objective-c-remote-plist-dictionary-nsuserdefaults/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 &#8211; Convert seconds to ww:dd:hh:mm:ss</title>
		<link>http://jamesborder.com/2011/12/as3-convert-seconds-to-wwddhhmmss/</link>
		<comments>http://jamesborder.com/2011/12/as3-convert-seconds-to-wwddhhmmss/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 16:45:57 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Actionscript]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=970</guid>
		<description><![CDATA[Credit where credit is due, originally found here: http://www.rblab.com/blog/2009/07/as3-snippet-convert-seconds-to-wwddhhmmss/ function convertTime(number:Number):String { number = Math.abs(number); var values:Array = new Array(5); values[0] = Math.floor(number / 86400 / 7);// weeks values[1] = Math.floor(number / 86400 % 7);// days values[2] = Math.floor(number / 3600 % 24);// hours values[3] = Math.floor(number / 60 % 60);// mins values[4] = Math.floor(number <a href='http://jamesborder.com/2011/12/as3-convert-seconds-to-wwddhhmmss/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Credit where credit is due, originally found here:<br />
<a href="http://www.rblab.com/blog/2009/07/as3-snippet-convert-seconds-to-wwddhhmmss/">http://www.rblab.com/blog/2009/07/as3-snippet-convert-seconds-to-wwddhhmmss/</a></p>
<p><code>function convertTime(number:Number):String<br />
{<br />
    number = Math.abs(number);<br />
    var values:Array = new Array(5);<br />
    values[0] = Math.floor(number / 86400 / 7);// weeks<br />
    values[1] = Math.floor(number / 86400 % 7);// days<br />
    values[2] = Math.floor(number / 3600 % 24);// hours<br />
    values[3] = Math.floor(number / 60 % 60);// mins<br />
    values[4] = Math.floor(number % 60);// secs</p>
<p>    var stopage:Boolean = false;<br />
    var cutIndex:Number = -1;</p>
<p>    for (var i:Number = 0; i < values.length; i++)<br />
    {<br />
        if (values[i] < 10)<br />
        {<br />
            values[i] = "0" + values[i];<br />
        }<br />
        if (values[i] == "00" &#038;&#038; i < (values.length - 2) &#038;&#038; !stopage)<br />
        {<br />
            cutIndex = i;<br />
        }<br />
        else<br />
        {<br />
            stopage = true;<br />
        }<br />
    }<br />
    values.splice(0, cutIndex + 1);</p>
<p>    return values.join(":");<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/12/as3-convert-seconds-to-wwddhhmmss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Cachebusting</title>
		<link>http://jamesborder.com/2011/12/javascript-cachebusting/</link>
		<comments>http://jamesborder.com/2011/12/javascript-cachebusting/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 21:51:24 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=963</guid>
		<description><![CDATA[&#60;script src=&#8221;assets/js/swfobject.js&#8221;>&#60;/script> &#60;script type=&#8221;text/javascript&#8221;> $(window).load(function(){ var seednum = 10000000; var unique = &#8220;?q=&#8221; + Math.round(Math.random() * 1337 * seednum); var swfFilePath = &#8220;index.swf&#8221; + unique; var so = new SWFObject(swfFilePath,&#8221;cfm&#8221;,&#8221;100%&#8221;,&#8221;100%&#8221;,&#8221;9&#8243;,&#8221;#fff&#8221;); so.addParam(&#8220;wmode&#8221;,&#8221;opaque&#8221;); so.addParam(&#8220;scale&#8221;,&#8221;noscale&#8221;); so.addParam(&#8216;allowScriptAccess&#8217;,'always&#8217;); so.write(&#8220;cfm&#8221;); }); &#60;/script> &#60;div id=&#8221;cfm&#8221;>Flash goes here&#60;/div>]]></description>
			<content:encoded><![CDATA[<p>&lt;script src=&#8221;assets/js/swfobject.js&#8221;>&lt;/script><br />
&lt;script type=&#8221;text/javascript&#8221;></p>
<p>	$(window).load(function(){</p>
<p>		var seednum = 10000000;<br />
		var unique = &#8220;?q=&#8221; + Math.round(Math.random() * 1337 * seednum);<br />
		var swfFilePath = &#8220;index.swf&#8221; + unique;</p>
<p>		var so = new SWFObject(swfFilePath,&#8221;cfm&#8221;,&#8221;100%&#8221;,&#8221;100%&#8221;,&#8221;9&#8243;,&#8221;#fff&#8221;);<br />
			so.addParam(&#8220;wmode&#8221;,&#8221;opaque&#8221;);<br />
			so.addParam(&#8220;scale&#8221;,&#8221;noscale&#8221;);<br />
			so.addParam(&#8216;allowScriptAccess&#8217;,'always&#8217;);<br />
			so.write(&#8220;cfm&#8221;);</p>
<p>	});</p>
<p>&lt;/script></p>
<p>&lt;div id=&#8221;cfm&#8221;>Flash goes here&lt;/div></p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/12/javascript-cachebusting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 referencing Main/Document class as Singleton&#124;&#124;Monostate</title>
		<link>http://jamesborder.com/2011/12/as3-referencing-maindocument-class-as-singletonmonostate/</link>
		<comments>http://jamesborder.com/2011/12/as3-referencing-maindocument-class-as-singletonmonostate/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 20:45:46 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[Actionscript]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=961</guid>
		<description><![CDATA[public class Main extends Sprite { private static var _instance:Main; public static function get instance():Main { return _instance; } public function Main() { _instance = this; // etc... } // etc... } Then you access the Main instance like this: public class Other { public function Other() { Main.instance.usefulInstanceMethod(); } } original source: http://stackoverflow.com/questions/370222/accessing-the-document-class-in-as3]]></description>
			<content:encoded><![CDATA[<p><code>public class Main extends Sprite {</p>
<p>    private static var _instance:Main;<br />
    public static function get instance():Main { return _instance; }</p>
<p>    public function Main() {<br />
        _instance = this;<br />
       // etc...<br />
    }</p>
<p>    // etc...<br />
}</p>
<p>Then you access the Main instance like this:</p>
<p>public class Other {<br />
    public function Other() {<br />
        Main.instance.usefulInstanceMethod();<br />
    }<br />
}<br />
</code></p>
<p>original source:</p>
<p>http://stackoverflow.com/questions/370222/accessing-the-document-class-in-as3</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/12/as3-referencing-maindocument-class-as-singletonmonostate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.hgignore</title>
		<link>http://jamesborder.com/2011/12/hgignore/</link>
		<comments>http://jamesborder.com/2011/12/hgignore/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 22:25:15 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[mercurial (hg)]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=958</guid>
		<description><![CDATA[syntax: glob ### .DS_Store *.mp4 *.mov # Backup files left behind by the Emacs editor. *~ # Lock files used by the Emacs editor. .\#* # Temporary files used by the vim editor. .*.swp # Temporary files used by TestMate ._* # build directories **/build/* build/* # tmp directory **/tmp/* tmp/* # XCode user data <a href='http://jamesborder.com/2011/12/hgignore/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>syntax: glob</p>
<p>###<br />
.DS_Store<br />
*.mp4<br />
*.mov</p>
<p># Backup files left behind by the Emacs editor.<br />
*~</p>
<p># Lock files used by the Emacs editor.<br />
.\#*</p>
<p># Temporary files used by the vim editor.<br />
.*.swp</p>
<p># Temporary files used by TestMate<br />
._*</p>
<p># build directories<br />
**/build/*<br />
build/*</p>
<p># tmp directory<br />
**/tmp/*<br />
tmp/* </p>
<p># XCode user data<br />
**.pbxuser<br />
**.mode?v?<br />
**.perspectivev?</p>
<p># documentation<br />
**.docset/*</p>
<p># for those crazies using svn and hg at the same time<br />
*.svn*</p>
<p># switch to regexp syntax.<br />
syntax: regexp<br />
.git/</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/12/hgignore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C UITabBarController selecting a tab and calling viewDidAppear</title>
		<link>http://jamesborder.com/2011/12/objective-c-calling-viewdidappear-on-select-uitabbarcontroller/</link>
		<comments>http://jamesborder.com/2011/12/objective-c-calling-viewdidappear-on-select-uitabbarcontroller/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 16:09:11 +0000</pubDate>
		<dc:creator>me</dc:creator>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://jamesborder.com/?p=942</guid>
		<description><![CDATA[self.tabBarController.selectedIndex = 3; [self.tabBarController.selectedViewController viewDidAppear:YES]; if inside a custom tabbarcontroller doing this //call viewWillDisappear in the current view [self.selectedViewController viewWillDisappear:YES]; //change view self.selectedIndex = tabID; //call viewDidAppear in the current view [self.selectedViewController viewDidAppear:YES];]]></description>
			<content:encoded><![CDATA[<p>self.tabBarController.selectedIndex = 3;<br />
[self.tabBarController.selectedViewController viewDidAppear:YES];</p>
<p>if inside a custom tabbarcontroller doing this</p>
<p>//call viewWillDisappear in the current view<br />
[self.selectedViewController viewWillDisappear:YES];</p>
<p>//change view<br />
 self.selectedIndex = tabID;</p>
<p>//call viewDidAppear in the current view<br />
[self.selectedViewController viewDidAppear:YES];</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesborder.com/2011/12/objective-c-calling-viewdidappear-on-select-uitabbarcontroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

