li_xu
li_xu
  • 发布:2016-04-14 20:46
  • 更新:2016-04-15 11:52
  • 阅读:2067

ios环境搭好了,Webview打不开第一个本地网页上需要跳转的(已经解决)

分类:5+ SDK

环境已经搭好,-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];  
}  
2016-04-14 20:46 负责人:无 分享
已邀请:
li_xu

li_xu (作者)

好像Webview方式打开本地的网页,不能跳转呀?

  • li_xu (作者)

    使用widget就可以

    2016-04-15 11:52

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