你想知道具体怎么做么?
那么就请跟着博主左手右手一个慢动作~~右手左手敲代码!!
1.在AppleDelegate里面创建一个CreateStartView的函数
2.实现 CreateStartView
-(void)createStartView
{
UITabBarController *tbc=(UITabBarController *)self.window.rootViewController;
CGSize size=[UIScreen mainScreen].bounds.size;
UIImageView *img=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, size.width, size.height)];
img.image=[UIImage imageNamed:@"4loading.png"];
[tbc.view addSubview:img];
//动画
[UIView animateWithDuration:3 animations:^{
img.alpha=0;
} completion:^(BOOL finished) {
[img removeFromSuperview];
}];
}