ios 添加伪闪屏

1   self.window.rootViewController.view.alpha = 0;
2     UIImageView *splashImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Defauit_o"]];
3     splashImageView.frame=CGRectMake(0, 0, ScreenWidth, ScreenHeight);
4     [self.window addSubview:splashImageView];
5     [UIView animateWithDuration:1.7 animations:^{
6         self.window.rootViewController.view.alpha = 1.0;
7     } completion:^(BOOL finished) {
8         [splashImageView removeFromSuperview];
9     }];

 

posted @ 2016-04-27 17:03  frounk  阅读(262)  评论(0)    收藏  举报