梅西
梅西
  • 发布:2015-06-01 11:25
  • 更新:2015-06-03 12:56
  • 阅读:1653

iOS 下打开新页面,报错

分类:5+ SDK
iOS

PDRCoreAppFrame *[[PDRCoreAppFrame alloc] initWithName:_htmlPath loadURL:pFilePath frame:StRect];
本地直接执行上函数没问题。
但是当html页面,用户js调用本地函数,本地函数在调用上面语句会报下面的错。怎么解决。
错误内容:Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...。

我是用webview集成的方式,起的html,由于mui.openWindow()函数不起作用,想用本地代码起新页面,方式还是用webview集成方式,但起第二个页面就报错了。

2015-06-01 11:25 负责人:无 分享
已邀请:
DCloud_IOS_XTY

DCloud_IOS_XTY

webview集成方式没有窗口管理作用,openWindonw不起作用如果需要该功能请使用其他集成方式,不要在非UI线程访问PDRCoreAppFrame

该问题目前已经被锁定, 无法添加新回复