Ios4 iPhone 4.0 SDK UIWebView因DomHtmleElement错误而崩溃

Ios4 iPhone 4.0 SDK UIWebView因DomHtmleElement错误而崩溃,ios4,ios,Ios4,Ios,我的应用程序有一个UIWebView,我用它打开了一个twitter oauth页面 当我打开oauth页面时,它运行良好 我登录后,它会重定向到另一个有PIN码的页面 它在下面的日志中崩溃了 它是4.0 SDK中的一个bug吗 2010-06-14 22:55:11.159 AllFx[1435:2003] -[DOMHTMLElement setHref:]: unrecognized selector sent to instance 0x74e4040 2010-06-14 22:55:

我的应用程序有一个UIWebView,我用它打开了一个twitter oauth页面

当我打开oauth页面时,它运行良好

我登录后,它会重定向到另一个有PIN码的页面

它在下面的日志中崩溃了

它是4.0 SDK中的一个bug吗

2010-06-14 22:55:11.159 AllFx[1435:2003] -[DOMHTMLElement setHref:]: unrecognized selector sent to instance 0x74e4040
2010-06-14 22:55:11.162 AllFx[1435:2003] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DOMHTMLElement setHref:]: unrecognized selector sent to instance 0x74e4040'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x02b6c919 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x02cba5de objc_exception_throw + 47
    2   CoreFoundation                      0x02b6e42b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x02ade116 ___forwarding___ + 966
    4   CoreFoundation                      0x02addcd2 _CF_forwarding_prep_0 + 50
    5   DataDetectorsUI                     0x0bde8ac4 -[WebTextIterator(DDExtensions) dd_doUrlificationForQuery:forResults:document:DOMWasModified:URLificationBlock:] + 1731
    6   DataDetectorsUI                     0x0bde2f09 -[DDOperation _doURLificationOnDocument] + 341
    7   DataDetectorsUI                     0x0bddff9c -[DDDetectionController _doURLificationOnWebThreadAndRelease:] + 563
    8   CoreFoundation                      0x02add42d __invoking___ + 29
    9   CoreFoundation                      0x02add301 -[NSInvocation invoke] + 145
    10  WebCore                             0x039fa2b3 _ZL15HandleAPISourcePv + 147
    11  CoreFoundation                      0x02b4dd7f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    12  CoreFoundation                      0x02aac2cb __CFRunLoopDoSources0 + 571
    13  CoreFoundation                      0x02aab7c6 __CFRunLoopRun + 470
    14  CoreFoundation                      0x02aab280 CFRunLoopRunSpecific + 208
    15  CoreFoundation                      0x02aab1a1 CFRunLoopRunInMode + 97
    16  WebCore                             0x039943c3 _ZL12RunWebThreadPv + 483
    17  libSystem.B.dylib                   0x98552a19 _pthread_start + 345
    18  libSystem.B.dylib                   0x9855289e thread_start + 34
)
terminate called after throwing an instance of 'NSException'
我知道了。 这可能是自动生成链接的问题

关闭对
UIWebView
的所有检测


在我的例子中,电话号码的检测是一个问题。

在UIWebView中禁用链接检测对我来说是一个问题!
我先试了一下电话号码,但这还不够。非常奇怪。

我遇到了完全相同的问题,在我的情况下,禁用电话号码编辑确实有效

webView.dataDetectorTypes = UIDataDetectorTypeLink;

非常奇怪的问题。

我能够使用此URL重新创建类似的堆栈。当我使用子域“www”时,它会正确加载网页。当我使用子域“m.”时,它加载网页,但随后以NSException终止。[WebView加载请求:[NSURLRequest requestWithURL:[NSURL URLWithString:@];我也在使用4.0 SDK。