Gap between Status bar and modal view
<p>Why there is gap between the status bar and the modalview? Can someone please help me with this to remove the gap between the status bar and modal view.</p>

<pre><code> UIButton *button = [UIButton buttonWithType:UIButtonTypeInfoLight];

[button addTarget:self action:@selector(displayModalViewaction:) forControlEvents:UIControlEventTouchUpInside];

UIBarButtonItem *infoItem = [[UIBarButtonItem alloc] initWithCustomView:button];


  - (void)displayModalViewaction: (id) sender 
    {

self.viewController = [[Infoviewcontroller alloc] init];

UINavigationController *navigationController=[[UINavigationController alloc] init];

navigationController.navigationBar.tintColor = [UIColor brownColor];  

[navigationController pushViewController:_viewController animated:YES];

[self.view addSubview:navigationController.view];

  }
</code></pre>

<p>Thanks a lot in advance for helping me.</p>
