"Blank screen" issue when updating your app for iOS 4 compatibility

The other day, we were updating our apps to make them compatible for iOS 4. And by "compatible" I mean just compiling them with the iOS 4 SDK so that they get some fast-app switching love. 

What was weird though, was when running certain apps on the device, it launched with just a blank black screen. The console showed no errors, and the app didn't fault in any way. It was as if the view didn't load at all. Turns out iOS 4 requires a single line of code in the -applicationDidFinishLaunching: method to make the view visible - this wasn't the case previously.

I'm not sure in which version of the SDK this crept in, but when creating an iOS app using the UITabBar template in XCode, there is no [window makeKeyAndVisible] call. This didn't matter in previous versions of the SDK, but it does now.

[TL;DR] So, if your app starts with a blank black screen, just check if it calls [window makeKeyAndVisible] in your -applicationDidFinishLaunching: method (usually it's the last line). If it doesn't, add it in and the world will once again be safe. For now.

STOP! It's Vader Time!

New life checklist:
1. Buy a Darth Vader suit
2. Learn the dance
3. Be awesome

13 ways of looking at an iPad

Neil Young, CEO and cofounder, ngmoco: "Forget the netbook. It’s a slow, clunky piece of junk. Do I want to look like the guy who couldn’t afford a real computer or the guy who went to the future and brought back a device that’s as cool as I imagine I am?"

Steven Johnson, Science writer: "With the arrival of the tablet, we have crossed a critical threshold: Where text is concerned, we effectively have infinite computational resources, connectivity, and portability."

Kevin Kelly, Technology pioneer: "Don’t think of them as tablets. Think of them as windows that you carry."

James Fallows, National correspondent, The Atlantic: "Will the tablet computer catch on? In one specialized realm, it already and decisively has: aerospace."

Bob Stein, Codirector, Institute for the Future of the Book: "As conventional publishers prayerfully port their print to tablets, my bet is that the gamemakers will invent the new forms of expression that will dominate the media landscape."

Martha Stewart, Magazine publisher and TV host: "I already have the digitized version of National Geographic, but it’s not the same thing. It’s just like the magazine. The tablet could be like going into Africa."

Nicholas Negroponte, Founder, One Laptop per Child: "The unsung advantage of current ebooks is being able to use them in bed."

Gina Bianchini, CEO, Ning: "A smartphone is mobile, but it isn’t fun to browse on. On a laptop, the technology is built in, but few want to carry around a 6-pound computer for the privilege of using a browser. The tablet bridges this gap."

George Lois, Advertising pioneer: "The magazine is dead. Long live the magazine."

Jack Dangermond, President and founder, ESRI: "A location-aware tablet will let us use what’s called geodesign to compose participatory, what-if scenarios onsite, using maps that several people can share."

Marshall McLuhan, Prophet of the electronic age (channeled by Gary Wolf): "The long story of humanism — by which I mean the emergence of individual consciousness as a byproduct of our language and literature — comes to an end when we return, futuristically, to doing everything by hand."

Fake Steve Jobs, Not the CEO of Apple: "I wasn’t put on earth to save The New York Times. I was put on earth to restore a sense of childlike wonder to people’s empty, pathetic lives, and I must say that so far I’m doing a pretty outstanding job."

Chris Anderson, Editor in chief, Wired: "Bigger than a phone, funner than a laptop, more cuddly than a Kindle. I think they’re going to sell like hotcakes."

 

via 13 ways of looking at an iPad - Apple 2.0 - Fortune Brainstorm Tech by Philip Elmer-DeWitt

View from my balcony at Amanzingwe Lodge

via tweetie

I used my new Flip UltraHD video camera with its underwater case on my scuba dive today! The video came out great!

(download)

Really, really enjoyed myself on my 2nd scuba dive today at uShaka Marine World in Durban. I shot this video with my new Flip UltraHD video camera and edited it in iMovie 09.

The Scoin shop is giving away free bronze Mandela coins to comemorate Madiba's release. Here's mine:

via tweetie

The ANC honours my late grandfather, K Ramdial.

via tweetie

Our Android dev phone arrived today - the Nexus One

And just like that, the magical DHL man arrived at our offices today with our brand spanking new Google Nexus One - our Android development phone. Yeah, we do Android development too!

       
Click here to download:
Our_Android_dev_phone_arrived_.zip (435 KB)

How I'm following Apple's Special Event

via tweetie

Rocking to Star Player live! These guys are awesome! Our own @paul5000 is on keys!

via tweetie
Tags