添加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 ...]
什么问题的任何想法?
谢谢,
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,
原文:https://stackoverflow.com/questions/9823694
最满意答案
问题是由一个名为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.
相关问答
更多-
关闭DTD并在添加以下内容: 从http://www.nczonline.net/blog/2010/01/19/internet-explorer-8-document-and-browser-modes/ 在Win 7上测试了Win11和IE10上的IE11。 Leave the DTD off and add the following in the :配售: 在标签中应该这样做。 Placing: in the tag should do it.
页面陷入奇怪模式(Page stuck in Quirks Mode)[2022-11-14]
我不知道你的意思是“[doctype]总是被评论出来”。 有很多不同的东西可以导致Quirks模式, 请看这里 。 另一个常见原因是在doctype之前有东西 。 甚至看不见的东西 。 如果在添加它,可以在不调试实际问题的情况下解决此问题: I don't know what you mean by "[the doctype] is always getting commented ...在doctype使浏览器进入怪癖模式之前会有php代码吗?(would having php code before doctype make browser to go into quirks mode?)[2022-07-26]
不会。在浏览器使用之前处理PHP代码。 只需确保在PHP之后不发送任何尾随字符或回显任何内容。 No. PHP code is processed before the browser consumes it. Just make sure you don't send any trailing characters after your PHP or echo anything.我应该关心IE quirk模式吗? 只要你应该使用触发标准模式的文档类型,所以你没有处理怪癖模式。 Should I care about the IE quirk mode? Only insofar as you should use a Doctype that triggers Standards mode so you don't have a deal with Quirks mode.在严格模式下无法修复模态高度,Quirks模式真的那么糟糕吗?(Can't fix modal height in Strict Mode, is Quirks Mode really that bad?)[2022-04-03]
标准模式和怪异模式之间的最大区别是盒子模型。 当你切换到标准模式时,听起来这就是咬你并打破你的模态。 好消息是这个特殊问题很容易在CSS中处理。 有一个标准的CSS属性,允许您切换盒子模型,这样即使您处于标准模式,也可以使它以怪癖模式运行。 所有你需要这样来激活它是这样的: box-sizing: border-box; 将此样式添加到样式表中,以便它影响您需要的任何元素。 这可能只是你的模态,也可能是你的整个页面。 所以我的问题是:怪癖模式真的那么糟糕吗? 好吧,正如您从上面所看到的,主要区别很明确,可 ...如果页面是本地页面或Intranet,则Internet Explorer默认为quirks模式。 如果您将相同的页面放在Web上,它将按预期运行。 要使其正常工作,在使用ASP.NET时,可以将其添加到web.config文件中:问题是由一个名为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 wen ...问题似乎在其他地方得到解决 Windows 8 Internet Explorer 10仍然有quirksmode吗? http://blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx 所以,你的值是假的,它是IE=5而不是IE=IE5 The problem seems to be solve ...Dreamweaver在Internet Explorer中导致Quirks模式(Dreamweaver causing Quirks Mode in Internet Explorer)[2022-01-19]
好的,我想出来了。 由于我正在进行广泛的IE兼容性调整,我使用了条件注释。 但是,我在html标签上使用它们。 原则上这没有任何问题,但是当你这样做时,Dreamweaver将无法正确处理你的实时模板更新(它会在doctype之前放置Dreamweaver特定的模板锁定代码,从而确保你的页面将在IE中抛出Quirks模式) 。 所以我所做的是将我的条件评论系统从html标签移开,而不是在打开的body标签之后立即使用它们,并在关闭的body标签之前立即使用它们: