- -(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];
}
}
breezee
- 发布:2015-08-17 19:20
- 更新:2015-08-18 17:15
- 阅读:1593
1 个回复
DCloud_IOS_XTY
下个版本修复该问题