智莺生活APP的阿里百川 Flutter 插件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 rivejä
1.1 KiB

  1. #include "AppDelegate.h"
  2. #include "GeneratedPluginRegistrant.h"
  3. @implementation AppDelegate
  4. - (BOOL)application:(UIApplication *)application
  5. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  6. [GeneratedPluginRegistrant registerWithRegistry:self];
  7. // 获取本身vc
  8. // // Override point for customization after application launch.
  9. // self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
  10. // //
  11. // UINavigationController* root = [[UINavigationController alloc]initWithRootViewController:vc];
  12. // self.window.backgroundColor = [UIColor whiteColor];
  13. // self.window.rootViewController = root;
  14. // [self.window makeKeyAndVisible];
  15. //
  16. return [super application:application didFinishLaunchingWithOptions:launchOptions];
  17. }
  18. -(FlutterViewController *)getFlutterViewCtrl{
  19. UIViewController* viewController = [UIApplication sharedApplication].keyWindow.rootViewController;
  20. if ([viewController isKindOfClass:[FlutterViewController class]]) {
  21. return (FlutterViewController*)viewController;
  22. }
  23. return nil;
  24. }
  25. @end