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;