【发布时间】:2010-02-03 13:56:16
【问题描述】:
两天来我一直在努力解决这个问题,但没有运气。我有一个导航到页面的基本 UIWebview。该页面有一个 JavaScript 函数,该函数似乎会使 UIWebView 崩溃,但在 safari 中运行良好。我很茫然。我收到以下崩溃错误:
2010-02-03 08:30:16.559 Wasp[11380:207] *** -[DOMElement structuralComplexityContribution]: unrecognized selector sent to instance 0xf53e60
2010-02-03 08:30:16.561 Wasp[11380:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[DOMElement structuralComplexityContribution]: unrecognized selector sent to instance 0xf53e60'
感谢任何帮助或指导。
有问题的 JavaScript 文件是新的 gordon flash 运行时。一个例子可以在 http://davididas.com/gordon/test1.html.
【问题讨论】:
-
请贴出有问题的JS函数。如果您删除该功能,那么就不会崩溃?
-
我刚刚编辑了带有 javascript 文件的原始请求和一个可以找到它的链接。如果我删除 javascript,页面加载正常,如果我在 UIWebView 中加载任何其他页面,它运行正常。唯一一次崩溃是在运行这个特定的 javascript 文件时。
标签: iphone iphone-sdk-3.0 crash uiwebview