1. 首页
  2. 移动开发
  3. iOS
  4. iOS 各种动画

iOS 各种动画

上传者: 2019-04-11 22:39:54上传 ZIP文件 33.84KB 热度 41次
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];
用户评论