Proj
Proj
  • 发布:2016-06-15 11:12
  • 更新:2016-06-15 15:11
  • 阅读:1349

【报Bug】iOS端webView方式集成获取到的appFrame.webView对象为nil

分类:5+ SDK

详细问题描述
[内容]
最新版SDK(6月8日更新的),集成webView,但是在创建appFrame对象之后,获取到的webView为nil,导致对appFrame.webView操作崩溃.

运行环境
Xcode 7.2
[系统版本]
iOS 9.2

附件
[代码片段]

  • (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    PDRCore* pCoreHandle = [PDRCore Instance];
    if (pCoreHandle != nil)
    {
    [pCoreHandle start];

    // 单页面集成时可以设置打开的页面是本地文件或者是网络路径  
     NSString* pFilePath = @"http://www.163.com";  
    
    CGRect StRect = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height);  
    
    appFrame = [[PDRCoreAppFrame alloc] initWithName:@"WebViewID1" loadURL:pFilePath frame:StRect];  
    [pCoreHandle.appManager.activeApp.appWindow registerFrame:appFrame];  
    [self.view  addSubview:appFrame];  

    //请忽略下行代码
    // self.webView = [[appFrame valueForKey:@"webEngine"] valueForKey:@"webView"];
    }
    }

联系方式
[QQ]
825238111
[电话]

2016-06-15 11:12 负责人:无 分享
已邀请:
DCloud_IOS_XTY

DCloud_IOS_XTY

webView属性现在已经移除了,稍后会更新下头文件@DCloud_SDK_骁骑

  • li_xu

    属性移除以后,还能找到webview吗?

    2016-06-28 21:50

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