【文件属性】:
文件名称:iOS 各种动画
文件大小:34KB
文件格式:ZIP
更新时间:2018-05-14 11:07:26
animation
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:@"twitterIcon.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];
【文件预览】:
StudyiOS.xcodeproj
----apple.pbxuser(19KB)
----apple.mode1v3(41KB)
----project.xcworkspace()
--------contents.xcworkspacedata(153B)
--------xcuserdata()
----xcuserdata()
--------apple.xcuserdatad()
----project.pbxproj(16KB)