环境已经搭好,-liblibUI -llibWebNavi都加了,按如下打开了本地的一个网页以后,点击网页上的东西,无法跳转,我这边webview环境配好了吗?如果访问网址的话一切正常。
PDRCore* pCoreHandle = [PDRCore Instance];
if (pCoreHandle != nil)
{
// 设置Core启动方式
[pCoreHandle startAsWebClient];
// 设置拼写Webview将要打开文件的url
NSString* pFilePath = [NSString stringWithFormat:@"file://%@/%@", [NSBundle mainBundle].bundlePath, @"Pandora/apps/b2b/www/html/index.html"];
NSLog(@"%@",pFilePath);
CGRect StRect = CGRectMake(0, 20, self.view.frame.size.width, self.view.frame.size.height - 20);
appFrame = [[PDRCoreAppFrame alloc] initWithName:@"WebViewID1" loadURL:pFilePath frame:StRect];
// 设置webview的Appframe
[pCoreHandle.appManager.activeApp.appWindow registerFrame:appFrame];
// 将AppFrame设置为当前View的Subview
[self.view addSubview:appFrame];
}
li_xu (作者)
使用widget就可以
2016-04-15 11:52