AppDelegate.m 697 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // AppDelegate.m
  3. // TestApp
  4. //
  5. // Created by 邢铖 on 2023/6/1.
  6. //
  7. #import "AppDelegate.h"
  8. #import "RootViewController.h"
  9. #import <XCTreeLang/XCTreeLang.h>
  10. @interface AppDelegate ()
  11. @end
  12. @implementation AppDelegate
  13. - (UIWindow *)window {
  14. if (!_window) {
  15. _window = [UIWindow new];
  16. _window.rootViewController = [RootViewController new];
  17. }
  18. return _window;
  19. }
  20. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  21. // Override point for customization after application launch.
  22. [XCTLEngine.shared enableAutoEvaluateForViewController];
  23. [self.window makeKeyAndVisible];
  24. return YES;
  25. }
  26. @end