Animated Splash Screen in iPhone

前端 未结 7 1784

I need to implement animated splash screen to the iPhone application. I have seen skype application where same thing is already implemented.

Can anyone has idea how can

7条回答
  •  走了就别回头了
    2021-02-03 17:04

    - (void) welcomeScreen
    {
    
     //Welcome Screen
     UIImageView* welcome = [[[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)]autorelease];
     welcome.image = [UIImage imageNamed:@"img.png"];
     [window addSubview:welcome];
     [window bringSubviewToFront:welcome];
    
     //Animation Effects (zoom and fade)
     [UIView beginAnimations:nil context:nil];
     [UIView setAnimationDuration:2.0];
     [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
     [UIView setAnimationDelegate:welcome];
     [UIView setAnimationDidStopSelector:@selector(removeFromSuperview)];
    
    //set transparency to 0.0
     welcome.alpha = 0.0;
    
    //zoom effect
     welcome.frame = CGRectMake(-60, -60, 440, 600);
    
     [UIView commitAnimations];
    
    
    }
    

提交回复
热议问题