I am trying to have a transparent navigation bar in IOS 7 app. There is a full screen image in my application. I am also having a UITableView over that image. When I use the
This is working in both landscape mode and portrait mode in iOS8:
- (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; CGRect rect = self.navigationController.navigationBar.frame; float y = -rect.origin.y; self.tableView.contentInset = UIEdgeInsetsMake(y ,0,0,0); }