breezee
breezee
  • 发布:2015-08-17 19:20
  • 更新:2015-08-18 17:15
  • 阅读:1516

SDK里的例程函数把调plugin.html改为index.html就白屏

分类:5+ SDK
- -(IBAction)ShowWebViewPageOne:(id)sender  
{  

    pCoreHandle = [PDRCore Instance];  
    if (pCoreHandle != nil)  
    {  

        [pCoreHandle startAsWebClient];  

        NSString* pFilePath = [NSString stringWithFormat:@"file://%@/%@", [NSBundle mainBundle].bundlePath, @"Pandora/apps/HelloH5/www/index.html"];  

        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];  
        NSString* pStringDocumentpath = [NSString stringWithFormat:@"%@/Pandora/apps/HelloH5/www/", [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]];  
        [pCoreHandle.appManager.activeApp.appInfo setWwwPath:pStringDocumentpath];  
        [pCoreHandle.appManager.activeApp.appWindow registerFrame:appFrame];  

        [self.view addSubview:appFrame];  
    }  

}  
2015-08-17 19:20 负责人:无 分享
已邀请:
DCloud_IOS_XTY

DCloud_IOS_XTY

下个版本修复该问题

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