首页 \ 问答 \ 添加UINavigationController时UIPopoverController iOS 5.1奇怪的空间(UIPopoverController iOS 5.1 strange space when adding UINavigationController)

添加UINavigationController时UIPopoverController iOS 5.1奇怪的空间(UIPopoverController iOS 5.1 strange space when adding UINavigationController)

我有一些UIPopoverController在4.3 / 5.0 iOS iPad中运行良好。

现在,使用iOS 5.1,我在顶部有一个奇怪的空间。

你可以看到两个图像,在4.3 / 5.0中tableView就在navigationController下面。

在5.1中,有一个空格,就像一个空行,但它不是一行,你不能选择,你可以滚动但空白就在那里。

当我使用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 ...]

什么问题的任何想法?

谢谢,

与此问题相关

iOS 4.3 / 5.0iOS 5.1


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,

Related to this question

iOS 4.3/5.0 iOS 5.1


原文:https://stackoverflow.com/questions/9823694
更新时间:2023-06-05 07:06

最满意答案

问题是由一个名为WP Mailto Links的插件引起的(freelancephp.net/en/wp-mailto-links-plugin-2)。 我禁用了所有插件并逐个浏览它们并通过消除过程我设法找出问题的原因并禁用插件。


The problem was caused by a plugin called WP Mailto Links (freelancephp.net/en/wp-mailto-links-plugin-2). I disabled all the plugins and went through them one by one and by a process of elimination I managed to identify the cause of the problem and disable to plugin.

相关问答

更多