iOS启动屏后再加个闪屏的方法

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

在- (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions 里添加

self.window.rootViewController.view.alpha = 0;
UIImageView *splashImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"splash"]];
[self.window addSubview:splashImageView];
[UIView animateWithDuration:0.7 animations:^{
    self.window.rootViewController.view.alpha = 1.0;
} completion:^(BOOL finished) {
    [addSubview:splashImageView removeFromSuperview];
}];

本文地址: http://www.starming.com/index.php?v=index&view=21