UIWebView和定义字典 [英] UIWebView and define dictionary

查看:148
本文介绍了UIWebView和定义字典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有UIWebView内置的复制和定义选项。它工作正常在iPad上,但在iPhone上,它只有一次,当我突出显示文本和使用字典,第二次我尝试它,它不显示popover。任何想法?

I had the copy and define option built in with the UIWebView. It worked just fine on the iPad but on the iPhone, it only works once when I highlight the text and use the dictionary and the second time I tried it, it doesn't show up the popover. Any idea?

更新:
我在得到以下错误,当解雇在iPhone上的字典:
UIFallbackPresentationViewController的开始/结束外观转换的不平衡调用

UPDATE: I am getting the following error as well when dismissing the dictionary on the iPhone: Unbalanced calls to begin/end appearance transitions for UIFallbackPresentationViewController

UPDATE:
当我提出一个UIAlertView并取消它的字典再次。

UPDATE: When I present a UIAlertView and cancel's it the dictionary works again. Wonder why?

推荐答案

目前有 52其他问题在stackoverflow提到这个错误..

At the moment there are 52 other questions on stackoverflow mentioning this error..

从阅读几个我认为苹果正在使用的是在实际字典视图完全加载之前调用 presentModalViewController:

From reading a few i think the code apple is using is calling presentModalViewController: before the actual dictionary view is fully loaded.

我认为这只是苹果必须解决的一个错误, Rudolf Adamkovic的示例清楚地表明:

I think this is just a bug which apple has to solve, Rudolf Adamkovic's sample made it clear:


  • 创建单一视图应用程序

  • 添加UITextView

  • 运行

  • 在文本视图中选择一个字词

  • 选择定义

  • Create "Single View Application"
  • Add UITextView
  • Run it
  • Select a word in the text view
  • Choose Define

调试控制台告诉您这样的:

Debug console tell's you something like this:

Unbalanced calls to begin/end appearance transitions for 
<_UIFallbackPresentationViewController: 0x74c1660>


我提出了错误: https://bugreport.apple.com

示例代码:< a href =https://github.com/tiemevanveen/DefineBugDemoProject =nofollow> https://github.com/tiemevanveen/DefineBugDemoProject

这篇关于UIWebView和定义字典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆