From 698c0ad9b83460087e0318d1336eaee7924a04c4 Mon Sep 17 00:00:00 2001 From: Dmitry Moskalchuk Date: Wed, 2 Feb 2011 19:36:39 +0300 Subject: [PATCH] Support UI created/destroyed callbacks on iPhone --- platform/iphone/Classes/Rhodes.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/iphone/Classes/Rhodes.m b/platform/iphone/Classes/Rhodes.m index 1424a55b6ec..a252326e8d5 100644 --- a/platform/iphone/Classes/Rhodes.m +++ b/platform/iphone/Classes/Rhodes.m @@ -707,6 +707,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( } } [self doStartUp]; + rho_rhodesapp_callUiCreatedCallback(); [self processDoSync:launchOptions]; if ( !rho_rhodesapp_canstartapp([start_parameter UTF8String], ", ") ) @@ -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(); }