briancollins / BCTabBarController

a Tweetie-style tab bar for the iPhone
MIT License
568 stars 95 forks source link

Black screen when switching out UITabBarController with BCTabBarController #5

Closed tamoyal closed 13 years ago

tamoyal commented 13 years ago

I switched out the standard UITabBarController with your's and I just get a blank screen. I'm starting to dig through the code but wondering if you have seen this before. For some reason in the "loadView" method I get null for the applicationFrame:

NSLog(@"[[UIScreen mainScreen] applicationFrame] = %@", [[UIScreen mainScreen] applicationFrame]); // prints null NSLog(@"[[UIScreen mainScreen] applicationFrame].size.width = %d", [[UIScreen mainScreen] applicationFrame].size.width); // prints 0

runmad commented 13 years ago

I initially had the same issue, but adding:

to all UIViewController classes solved it. Oddly enough, it ran fine without this method in Simulator, but the screen was blank on the device without it.