Skip to content

Commit

Permalink
Support UI created/destroyed callbacks on iPhone
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Moskalchuk committed Feb 2, 2011
1 parent 4597428 commit 698c0ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/iphone/Classes/Rhodes.m
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
}
}
[self doStartUp];
rho_rhodesapp_callUiCreatedCallback();
[self processDoSync:launchOptions];

if ( !rho_rhodesapp_canstartapp([start_parameter UTF8String], ", ") )
Expand Down Expand Up @@ -780,6 +781,7 @@ - (void)applicationWillEnterForeground:(UIApplication *)application {

- (void)applicationWillTerminate:(UIApplication *)application {
RAWLOG_INFO("Runner will terminate");
rho_rhodesapp_callUiDestroyedCallback();
[self saveLastUsedTime];
rho_rhodesapp_destroy();
}
Expand Down

0 comments on commit 698c0ad

Please sign in to comment.