Commit a2086d44 authored by ColdPaleLight's avatar ColdPaleLight

iOS Example 提前设置rootViewController,Image Picker之类的Plugin会用到

parent 3ca866d2
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
tabVC.viewControllers = @[vc,fvc]; tabVC.viewControllers = @[vc,fvc];
self.window.rootViewController = rvc;
[FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router [FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router
onStart:^(FlutterViewController *fvc) { onStart:^(FlutterViewController *fvc) {
...@@ -49,7 +51,7 @@ ...@@ -49,7 +51,7 @@
}]; }];
self.window.rootViewController = rvc;
UIButton *nativeButton = [UIButton buttonWithType:UIButtonTypeCustom]; UIButton *nativeButton = [UIButton buttonWithType:UIButtonTypeCustom];
nativeButton.frame = CGRectMake(self.window.frame.size.width * 0.5 - 50, 200, 100, 45); nativeButton.frame = CGRectMake(self.window.frame.size.width * 0.5 - 50, 200, 100, 45);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment