From cb01489573a0e50c7be15d6fae4c2d6bf4c8f2d2 Mon Sep 17 00:00:00 2001 From: alexju Date: Tue, 23 Jun 2020 17:19:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:appDidFinishLaunch=20=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/Modules/PayService.m | 4 ++-- Demo/Modules/UserService.m | 4 ++-- Sources/AppModule/QTAppDelegate.m | 2 +- Sources/AppModule/QTAppModule.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Demo/Modules/PayService.m b/Demo/Modules/PayService.m index 216258d..257d5c2 100644 --- a/Demo/Modules/PayService.m +++ b/Demo/Modules/PayService.m @@ -21,8 +21,8 @@ @implementation PayService return [[PayService alloc] init]; } -- (void)appDidFinishLuanch:(QTAppDidLaunchEvent *)event{ - NSLog(@"PayService: appDidFinishLuanch"); +- (void)appDidFinishLaunch:(QTAppDidLaunchEvent *)event{ + NSLog(@"PayService: appDidFinishLaunch"); } @end diff --git a/Demo/Modules/UserService.m b/Demo/Modules/UserService.m index 9190421..42e4f90 100644 --- a/Demo/Modules/UserService.m +++ b/Demo/Modules/UserService.m @@ -36,8 +36,8 @@ - (void)registerEventObserver{ return [UserService shared]; } -- (void)appDidFinishLuanch:(QTAppDidLaunchEvent *)event{ - NSLog(@"UserService: appDidFinishLuanch"); +- (void)appDidFinishLaunch:(QTAppDidLaunchEvent *)event{ + NSLog(@"UserService: appDidFinishLaunch"); [[UserService shared] registerEventObserver]; } diff --git a/Sources/AppModule/QTAppDelegate.m b/Sources/AppModule/QTAppDelegate.m index 51d26dd..2fadf29 100644 --- a/Sources/AppModule/QTAppDelegate.m +++ b/Sources/AppModule/QTAppDelegate.m @@ -24,7 +24,7 @@ @implementation QTAppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ QTAppDidLaunchEvent * event = [[QTAppDidLaunchEvent alloc] init]; event.launchOptions = launchOptions; - [self _sendEvent:event sel:@selector(appDidFinishLuanch:)]; + [self _sendEvent:event sel:@selector(appDidFinishLaunch:)]; QTAppAllModuleInitEvent * initEvent = [[QTAppAllModuleInitEvent alloc] init]; [self _sendEvent:initEvent sel:@selector(appAllModuleInit:)]; return YES; diff --git a/Sources/AppModule/QTAppModule.h b/Sources/AppModule/QTAppModule.h index 9aeca06..2719462 100644 --- a/Sources/AppModule/QTAppModule.h +++ b/Sources/AppModule/QTAppModule.h @@ -21,7 +21,7 @@ #pragma mark - 常用 /// 启动 -- (void)appDidFinishLuanch:(QTAppDidLaunchEvent *)event; +- (void)appDidFinishLaunch:(QTAppDidLaunchEvent *)event; /// App全部的模块已初始化 - (void)appAllModuleInit:(QTAppAllModuleInitEvent *)event;