user1256220
user1256220

Reputation:

Movie after splash screen or splash screen as movie

Is there anyway I can play .mov, .gif or any formats after application launches? any suggestions will do :) or I can use animation in images the load it in 'application didFinishLaunching'. Thanks :)

Upvotes: 0

Views: 6802

Answers (2)

vishiphone
vishiphone

Reputation: 750

add this in your appDelegate.m file

  -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
     [viewController showSplash];

 }

add this in your view controller.m file

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

  }

Try this and inform us it will be helpful for you or not;

Upvotes: 1

Titouan de Bailleul
Titouan de Bailleul

Reputation: 12949

Again, I just googled 'video splashscreen objective-c', and I found these :

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

And I think you can find more about this topic, it is a really common one.

Upvotes: 0

Related Questions