Archive for the ‘Tips & Tricks’ Category

iPhone SDK Tip & Trick #003: How do I Concatenate Two Strings Together?

Saturday, December 6, 2008 12:00 3 Comments

Question:
How do I concatenate two strings together?
Answer:
NSString *string1 = @”Alpha”;
NSString *string2 = @”Omega”;
string1 = [string1 stringByAppendingString:string2];

This was posted under category: Tips & Tricks, iPhone SDK

iPhone SDK Tip & Trick #002: How do I Disable the Idle Timer?

Wednesday, December 3, 2008 12:00 No Comments

Question:
How do I disable the idle timer?
Answer:
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

This was posted under category: Tips & Tricks, iPhone SDK

iPhone SDK Tip & Trick #001: Hiding/Showing Status Bar

Monday, December 1, 2008 12:00 1 Comment

Question:
How do I hide/show the status bar?
Answer:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]];

This was posted under category: Tips & Tricks, iPhone SDK