<i id='XGnGz'><tr id='XGnGz'><dt id='XGnGz'><q id='XGnGz'><span id='XGnGz'><b id='XGnGz'><form id='XGnGz'><ins id='XGnGz'></ins><ul id='XGnGz'></ul><sub id='XGnGz'></sub></form><legend id='XGnGz'></legend><bdo id='XGnGz'><pre id='XGnGz'><center id='XGnGz'></center></pre></bdo></b><th id='XGnGz'></th></span></q></dt></tr></i><div id='XGnGz'><tfoot id='XGnGz'></tfoot><dl id='XGnGz'><fieldset id='XGnGz'></fieldset></dl></div>
  • <tfoot id='XGnGz'></tfoot>
    • <bdo id='XGnGz'></bdo><ul id='XGnGz'></ul>

  • <small id='XGnGz'></small><noframes id='XGnGz'>

      1. <legend id='XGnGz'><style id='XGnGz'><dir id='XGnGz'><q id='XGnGz'></q></dir></style></legend>

        iPhone SDK - 在 Web 视图中的 UITextView 中打开链接

        iPhone SDK - opening links in a UITextView in a web view(iPhone SDK - 在 Web 视图中的 UITextView 中打开链接)
        <i id='FHh1q'><tr id='FHh1q'><dt id='FHh1q'><q id='FHh1q'><span id='FHh1q'><b id='FHh1q'><form id='FHh1q'><ins id='FHh1q'></ins><ul id='FHh1q'></ul><sub id='FHh1q'></sub></form><legend id='FHh1q'></legend><bdo id='FHh1q'><pre id='FHh1q'><center id='FHh1q'></center></pre></bdo></b><th id='FHh1q'></th></span></q></dt></tr></i><div id='FHh1q'><tfoot id='FHh1q'></tfoot><dl id='FHh1q'><fieldset id='FHh1q'></fieldset></dl></div>
          <legend id='FHh1q'><style id='FHh1q'><dir id='FHh1q'><q id='FHh1q'></q></dir></style></legend>
          <tfoot id='FHh1q'></tfoot>

          1. <small id='FHh1q'></small><noframes id='FHh1q'>

                  <bdo id='FHh1q'></bdo><ul id='FHh1q'></ul>
                    <tbody id='FHh1q'></tbody>
                  本文介绍了iPhone SDK - 在 Web 视图中的 UITextView 中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 UITextView 上指定了 dataDetectorTypes,以便在触摸时在 Safari 中打开 URL.

                  I have specified dataDetectorTypes on a UITextView so that URLs open in Safari when touched.

                  是否可以拦截此行为,以便我将 URL 加载到 UIWebView 中?或者我会编写自己的 URL 检测器代码来重新路由它吗?

                  Is it possible to intercept this behaviour so I load the URL in a UIWebView instead? Or would I have write my own URL detector code to re-route this?

                  推荐答案

                  您必须自己进行 URL 检测,并在点击 URL 时手动加载 UIWebView.

                  You would have to do the URL detection yourself and manually load the UIWebView when the URL is tapped.

                  一切都需要定制,因为 Apple 会将所有 http://https:// URL 开口发送到 Safari.

                  Everything needs to be custom-done because Apple sends all http:// and https:// URL openings to Safari.

                  这篇关于iPhone SDK - 在 Web 视图中的 UITextView 中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  iOS UIWebView app opens link in Safari(iOS UIWebView 应用在 Safari 中打开链接)
                  Close UIWebView using javascript:window.close();(使用 javascript:window.close() 关闭 UIWebView;)
                  NSCachedURLResponse returns object, but UIWebView does not interprets content(NSCachedURLResponse 返回对象,但 UIWebView 不解释内容)
                  Trouble hiding iAd banner and displaying UIWebView in its place(无法隐藏 iAd 横幅并在其位置显示 UIWebView)
                  Knowing when AJAX has loaded in UIWebView(知道何时在 UIWebView 中加载了 AJAX)
                  Load image/logo in existing HTML input field - UIWebView(在现有的 HTML 输入字段中加载图像/徽标 - UIWebView)
                • <small id='jec9s'></small><noframes id='jec9s'>

                    <i id='jec9s'><tr id='jec9s'><dt id='jec9s'><q id='jec9s'><span id='jec9s'><b id='jec9s'><form id='jec9s'><ins id='jec9s'></ins><ul id='jec9s'></ul><sub id='jec9s'></sub></form><legend id='jec9s'></legend><bdo id='jec9s'><pre id='jec9s'><center id='jec9s'></center></pre></bdo></b><th id='jec9s'></th></span></q></dt></tr></i><div id='jec9s'><tfoot id='jec9s'></tfoot><dl id='jec9s'><fieldset id='jec9s'></fieldset></dl></div>
                    • <bdo id='jec9s'></bdo><ul id='jec9s'></ul>

                        <tbody id='jec9s'></tbody>
                    • <legend id='jec9s'><style id='jec9s'><dir id='jec9s'><q id='jec9s'></q></dir></style></legend>

                          <tfoot id='jec9s'></tfoot>