Hi All, First of all, let me show you the rule about the height of navigation bar in iOS7, quote from the web ( http://blog.jaredsinclair.com/post/61507315630/wrestling-with-status-bars-and-navigation-bars-on-ios-7 )
-- 1. UINavigationController will alter the height of its UINavigationBar to either 44 points or 64 points, depending on a rather strange and undocumented set of constraints. If the UINavigationController detects that the top of its view’s frame is visually contiguous with its UIWindow’s top, then it draws its navigation bar with a height of 64 points. If its view’s top is not contiguous with the UIWindow’s top (even if off by only one point), then it draws its navigation bar in the “traditional” way with a height of 44 points.This logic is performed by UINavigationController even if it is several children down inside the view controller hierarchy of your application.There is no way to prevent this behavior. -- My problem is, I have a UITabBarController with 3 tabs, and each tabs is a navigation controller. And this UITabBarController is a child controller of my root view controller which is a custom container controller. In normal state, those navigation controllers' navigation bar height is 64 points as the above content mentioned. In some events, I need to move the view of tab bar controller down for some distance, for example 40 points, and after this, the navigation bar still remains 64 points which is not correct, it will show as 44 points height only when I switch another tab. My question is how to make the navigation bar height correct when I move the view of tab bar controller down from the top without switching other tabs? I have tried navigation bar setNeedsDisplay, setNeedsLayout and the view of navigation controller setNeedsLayout etc, none of them works. -- ========================== Life isn't about finding yourself. Life is about creating yourself. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com