¡@

Home 

2014/10/15 ¤U¤È 10:08:58

iphone Programming Glossary: fheight

iOS Hiding tab bar in iOS 6 creates black bar (fix for iOS 6 breaks iOS 7!)

http://stackoverflow.com/questions/19006545/ios-hiding-tab-bar-in-ios-6-creates-black-bar-fix-for-ios-6-breaks-ios-7

in iOS 6 originally when rotating and hiding the tab bar it would leave a black space where the tab bar was so the fHeight code fixes this. However on iOS 6 it worked perfectly but now it actually creates the black bar problem iOS 6 was having.. screenRect UIScreen mainScreen bounds UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 float fHeight screenRect.size.height if UIDeviceOrientationIsLandscape UIApplication sharedApplication .statusBarOrientation fHeight.. screenRect.size.height if UIDeviceOrientationIsLandscape UIApplication sharedApplication .statusBarOrientation fHeight screenRect.size.width for UIView view in self.tabBarController.view.subviews if view isKindOfClass UITabBar class view..