pod 'Hummer', :git => '[email protected]:didi/Hummer.git', :branch => 'master',可以更换为最新的 tag
Hummer组件包含用户自定义组件初始化
[Hummer startEngine:nil];
HMViewController *hummerViewController = [[HMViewController alloc] init];
hummerViewController.URL = info.url;
hummerViewController.params = info.params;
hummerViewController.hm_dismissBlock = info.callback;
[Hummer evaluateScript:script fileName:self.URL inRootView:self.view];
HM_EXPORT_CLASS(jsClassName, objcClass) HM_EXPORT_METHOD(jsMethodName, sel) HM_EXPORT_PROPERTY(jsPropertyName, getter, setter)
- Hummer CLI 脚手架使用,请参考 CLI 使用教程。