呵呵和嘿嘿
呵呵和嘿嘿
  • 发布:2016-01-15 11:26
  • 更新:2016-01-18 10:41
  • 阅读:1621

webview集成方式中webview的定义在哪里

分类:5+ SDK

webview集成方式是下面这段代码,我想给webview添加一个协议,但是找不到webview是在哪里定义的
-(IBAction)ShowWebViewPageOne:(id)sender
{
// 获取PDRCore句柄
PDRCore* pCoreHandle = [PDRCore Instance];
if (pCoreHandle != nil)
{
// 设置Core启动方式
[pCoreHandle startAsWebClient];

    // 设置拼写Webview将要打开文件的url  
    NSString* pFilePath = [NSString stringWithFormat:@"file://%@/%@", [NSBundle mainBundle].bundlePath, @"Pandora/apps/HelloH5/www/plus/audio.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];  

    // 设置webview的Appframe  
    [pCoreHandle.appManager.activeApp.appWindow registerFrame:appFrame];  

    // 将AppFrame设置为当前View的Subview  
    [self.view addSubview:appFrame];  
}  

}

2016-01-15 11:26 负责人:无 分享
已邀请:
DCloud_IOS_XTY

DCloud_IOS_XTY

PDRCoreAppFrame.h

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