diff options
Diffstat (limited to 'Classes/PicCastAppDelegate.m')
-rw-r--r-- | Classes/PicCastAppDelegate.m | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Classes/PicCastAppDelegate.m b/Classes/PicCastAppDelegate.m index 3091f4a..f028035 100644 --- a/Classes/PicCastAppDelegate.m +++ b/Classes/PicCastAppDelegate.m @@ -27,13 +27,31 @@ // Add the tab bar controller's view to the window and display. [self.window addSubview:tabBarController.view]; [self.window makeKeyAndVisible]; + + [self doDefaultPngFade]; //navigationController = [[UINavigationController alloc] initWithRootViewController:(UIViewController *)tabBarController]; // this was put in because i errored out on some gif files that i guess were really large? [[TTURLRequestQueue mainQueue] setMaxContentLength:0]; - + return YES; } +- (void)doDefaultPngFade { + // add the new image to fade out + UIImageView * defaultFadeImage; + defaultFadeImage = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]] autorelease]; + [self.tabBarController.view addSubview:defaultFadeImage]; + + + // and start the default fadeout + [UIView beginAnimations:@"InitialFadeIn" context:nil]; + [UIView setAnimationDelegate:defaultFadeImage]; + [UIView setAnimationDidStopSelector:@selector( removeFromSuperview )]; + [UIView setAnimationDelay:0.0]; // stay on this long extra + [UIView setAnimationDuration:1.00]; // transition speed + [defaultFadeImage setAlpha:0.0]; + [UIView commitAnimations]; +} - (void)applicationWillResignActive:(UIApplication *)application { /* |