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];  
}  }
 
             
             
             
			 
                                        
                                     
            
1 个回复
DCloud_IOS_XTY
PDRCoreAppFrame.h