I am adding navigation controller through code, in my application. All other thing work fine, but my navigation bar overlaps with the status bar.I have tried by adding
if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;
but it is not working.
My other controllers in that navigation controller are in xibs only not storyboard. Please help.