Reputation: 777
I am presenting a UINavigationController from a UIViewController, I then want the container to move downward, hence shrinking the UINavigationController, merely to present a view at the top such as an error message, the problem is now on iOS7 the NavBar height is 64px and doesnt look right, also when I shift the UINavigationController frame back to full height and to 0 Y-origin, sometimes its shifting back to 44px. It seems like odd behavior. Any obvious solutions to this?
The black bar is the navigation bar, the gray is the UIViewController (parent)
I am also using:
if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
}
Upvotes: 1
Views: 1144
Reputation: 156
I didn't understand your question quite clearly, but it seems to me that you should try self.edgesForExtendedLayout = UIRectEdgeBottom;
instead of self.edgesForExtendedLayout = UIRectEdgeNone;
Upvotes: 1