[self creatLaunchImageAnimation];
#pragma mark - 启动动画效果
//系统的LaunchImage 只是加载一张图片 没有动画
//如果要实现动画 就必须自己用代码实现
//自定义的启动动画 必须自己写代码 实现
- (void)creatLaunchImageAnimation {
//增加一个 程序加载时候的启动动画。下面使我们自己实现的一个 隐藏的动画效果
UIImageView * startView = [MyControl creatImageViewWithFrame:self.view.bounds imageName:[NSString stringWithFormat:@"Defaultretein%u",arc4random()%7+1]];
//tabr 的视图上
[self.view addSubview:startView];
[UIView animateWithDuration:3 animations:^{
startView.alpha = 0;
} completion:^(BOOL finished) {
[startView removeFromSuperview];
}];
}