Home

Blog

Posted: 02 Nov 2010

Here's how to do it for iOS 5+.

The above only works for iOS 5+.

I recommend only supporting iOS 5+ because making your app better for iOS 5+ is more valuable than supporting iOS < 5. Trust me.

But, if you must support iOS < 5, replace the last line of -viewDidLoad above with the code below.

See how much more work that was? Definitely not worth it since now less than 0.5% of users installing your app run iOS < 5.

Moral of the story: Only support iOS 5+, not iOS 4.3, and you probably wouldn't have even had to look this up. :-)

04 Jan 2015 » Publish-Email Feature Idea

05 Jun 2014 » Gratitude

16 Mar 2014 » Learn to Code