Skip to main content

Posts

Showing posts with the label UINavgationBar

UIViewController view is overlapped with the Navigation and Status bar

Background: Since iOS7 release status bar is part of your  the view. It is the common problem faced in application that navigation and status bar overlapped with your view content when you use nib or xib files.                 XIB                                          Actual result I have seen in some application that to fix this problem view content is start from 64 pixel down. But it can raise other problem in the applications. So question is: How To Fix This ? Solution 1: In View did load you can add the following line: [ self setEdgesForExtendedLayout : UIRectEdgeNone ]; Example: - ( void )viewDidLoad {     [ super viewDidLoad ];     // Do any additional setup after loading the view, typically from a nib.     [ self setEdgesForExtendedLayout : UIRectEdgeNone ]; ...