pod 'MyFlutterPod',:git=>'https://github.com/393139258/MyFlutterPod.git'
以下使用方式不是必须要flutter环境
使用方式:
1.编辑Podfile
pod 'MyFlutterPod',:git=>'https://github.com/393139258/MyFlutterPod.git'
2.把OCFile文件夹代码拖入OC工程中
3.修改info.plist
增加key io.flutter.embedded_views_preview bool YES
4.bitcode设置成NO
5.跳转
YMFlutterViewController *flutterVc = [[YMFlutterViewController alloc] init];
flutterVc.view.backgroundColor = [UIColor whiteColor];
//这一步是去除跳转时加载的默认启动页
flutterVc.splashScreenView = [[UIView alloc] init];
[self.navigationController pushViewController:flutterVc animated:YES];
MyFlutterPod is available under the MIT license. See the LICENSE file for more info.