If you ever come across the problem in the image below where there is a small gap between the iPhone status bar and the navigation bar, add the following code to fix it:

[viewController.view setFrame: [viewController.view bounds]];

Gap Between iPhone Status Bar and UINavigationBar