| OLD | NEW |
| 1 #import "AppDelegate_iPhone.h" | 1 #import "AppDelegate_iPhone.h" |
| 2 | 2 |
| 3 @implementation AppDelegate_iPhone | 3 @implementation AppDelegate_iPhone |
| 4 @synthesize window, fRoot; | 4 @synthesize window, fRoot; |
| 5 | 5 |
| 6 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSDictionary *)launchOptions { | 6 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NSDictionary *)launchOptions { |
| 7 [window addSubview:fRoot.view]; | 7 [window addSubview:fRoot.view]; |
| 8 [window makeKeyAndVisible]; | 8 [window makeKeyAndVisible]; |
| 9 |
| 10 self.window.rootViewController = fRoot; |
| 11 |
| 9 return YES; | 12 return YES; |
| 10 } | 13 } |
| 11 | 14 |
| 12 - (void)dealloc { | 15 - (void)dealloc { |
| 13 [window release]; | 16 [window release]; |
| 14 [fRoot release]; | 17 [fRoot release]; |
| 15 [super dealloc]; | 18 [super dealloc]; |
| 16 } | 19 } |
| 17 | 20 |
| 18 @end | 21 @end |
| OLD | NEW |