Reputation: 1366
I finally figured out how to fade the splash screen out, but it shrinks it to 640x920 right before doing so. Here's a vid: http://www.youtube.com/watch?v=qUXrq-uHlVk
Anybody know how to fix this? Here is the code I'm using:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImageView *splash = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Default.png"]];
[self.window.rootViewController.view addSubview:splash];
[UIView animateWithDuration:1.0
animations:^{
splash.alpha = 0;
}
completion:^(BOOL finished) {
[splash removeFromSuperview];
}];
return YES;
}
Upvotes: 0
Views: 353
Reputation: 362
I don't think the default.png is a screenshot, however you will need to set the status bar on your "splash" subview to hidden.
Upvotes: 1
Reputation: 396
The "Default.png" is a screenshot from your device or emulator, because of this it contains your status bar... it looks like the image is being offset by that much... you might try using a different named image that is identical without the status bar.
Upvotes: 0