iOS 各种动画
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.frame]; imageView.image = [UIImage imageNamed:@"twitter background.png"]; [self.view addSubview:imageView]; //Twitter style splash SKSplashIcon *twitterSplashIcon = [[SKSplashIcon alloc] initWithImage:[UIImage imageNamed:@"twitterIco n.png"] animationType:SKIconAnimationTypeBounce]; UIColor *twitterColor = [UIColor colorWithRed:0.25098 green:0.6 blue:1.0 alpha:1.0]; _splashView = [[SKSplashView alloc] initWithSplashIcon:twitterSplashIcon backgroundColor:twitterColor animationType:SKSplashAnimationTypeNone]; _splashView.delegate = self; //Optional -> if you want to receive updates on animation beginning/end _splashView.animationDuration = 2; //Optional -> set animation duration. Default: 1s [self.view addSubview:_splashView]; [_splashView startAnimation]; n.png"] animationType:SKIconAnimationTypeBounce]; UIColor *twitterColor = [UIColor colorWithRed:0.25098 green:0.6 blue:1.0 alpha:1.0]; _splashView = [[SKSplashView alloc] initWithSplashIcon:twitterSplashIcon backgroundColor:twitterColor animationType:SKSplashAnimationTypeNone]; _splashView.delegate = self; //Optional -> if you want to receive updates on animation beginning/end _splashView.animationDuration = 2; //Optional -> set animation duration. Default: 1s [self.view addSubview:_splashView]; [_splashView startAnimation];
用户评论