iOS 各种动画

xiamu93613 40 0 ZIP 2019-04-11 22:04:54

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];

用户评论
请输入评论内容
评分:
暂无评论