LaunchAnimaiton
文件夹复制到您的工程目录中AppDelegate.m
文件中导入头文件即可:import "LaunchImageView.h"
// 切记:在添加前必须先设置window的视图可见并显示
// 即调用:[self.window makeKeyAndVisible],否则不会展示动画效果
[self.window addSubview:[[LaunchImageView alloc]
initWithFrame:self.window.bounds
animationType:AnimationTypeUpAndDown
duration:1.5f]];
请将启动图片放在项目的 Assets.xcassets
文件中,应从 Brand Assets 中加载。
LaunchAnimaiton 使用 MIT 许可证,详情见 LICENSE 文件