智莺生活APP的阿里百川 Flutter 插件
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

31 wiersze
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