印林泉
印林泉
  • 发布:2015-11-02 15:18
  • 更新:2015-11-02 15:18
  • 阅读:1593

iOS插件开发: (PDRCoreApp*)app.mainFrame始终为空

分类:5+ SDK

插件.m文件
@property (nonatomic, strong) UIView rootView;
@property (nonatomic, strong) UIViewController
rootViewController;

  • (PGPlugin) initWithWebView:(PDRCoreAppFrame)theWebView withAppContxt:(PDRCoreApp)app
    {
    _rootView = theWebView;//不为空
    _rootViewController = (UIViewController
    )app.mainFrame;//为空

    if ( self = [super initWithWebView:theWebView withAppContxt:app]) {
    [self addWebviewMode:theWebView andURL:theWebView.frameName];
    };
    return self;
    }

2015-11-02 15:18 负责人:无 分享
已邀请:

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