无论如何,我可以在应用程序启动后播放.mov,.gif或任何格式吗?任何建议都会做:)或者我可以在图像中使用动画加载'application didFinishLaunching'。谢谢:))
答案 0 :(得分:1)
在appDelegate.m文件中添加此内容
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[viewController showSplash];
}
在视图controller.m文件中添加它
-(void)showSplash
{
UIViewController *modalViewController = [[UIViewController alloc] init];
modalViewController.view = //here you use your video file
[self presentModalViewController:modalViewController animated:NO];
}
- (IBAction)hideSplash
{
[[self modalViewController] dismissModalViewControllerAnimated:YES];
}
试试这个并告诉我们它对您有帮助;
答案 1 :(得分:0)
再一次,我只是搜索了'视频启动画面目标-c',我发现了这些:
Add a video into splash screen or in the first view of the app (IOS xcode 4.0)
How to play animation/movie instead of iPhone splash screen?
iPhone - Showing video as a splash screen
我认为你可以找到更多关于这个话题,这是一个非常普遍的话题。