I have some UIPopoverController that were working fine in 4.3/5.0 iOS iPad.
Now, with iOS 5.1 I have a strange space on top.
You can see both images, in 4.3/5.0 the tableView is just below the navigationController.
In 5.1, there’s a space, like a blank row, but it’s not a row, you can’t select, you can scroll but the blank is there.
The problem appear when I use a UINavigationController
MassMediaViewController * massMediaViewController = [[MassMediaViewController alloc] initWithStyle:UITableViewStylePlain];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:massMediaViewController];
UIPopoverController * popoverMassMedia = [[UIPopoverController alloc] initWithContentViewController:navigationController];
[popoverMassMedia presentPopoverFromRect:textField.frame inView:self.scrollView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[... release objects ...]
Any ideas of what’s the problem ?
thanks,


Oh man, I found the problem!
In the tableViewController’s viewDidLoad I set the navigationBarStyle like this:
When you remove this line, everything works fine. Actually it doesn’t do anything at all, because the barStyle is in that special popover style anyway. But because I’m using the same tableViewController for the iPhone, I set the barStyle.
I made another simple test project and was able to reproduce this bug and solve it by removing the barStyle setting.
I’ll file a bugreport …