diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-21 19:19:57 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-21 19:19:57 -0400 |
commit | 64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4 (patch) | |
tree | cd4e2a3ba3ca2cf6543315ebb0ccb1ab6ae5b0ea /Classes/PicCastAppDelegate.m | |
parent | e5a5bc8a1edc90cf0b200956f6a3f7712766d1d6 (diff) | |
download | piccast-app-64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4.tar.gz piccast-app-64e9e2e8d01ec34e5d7a2c1cb11d3780408403c4.zip |
add titlebar image, loading image, loading fade, sources edit page has onoff switch but needs it to work better, drawRect override for navigationbar
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 { /* |