Je veux créer une application avec intro de films, tout comme les jeux gameloft. donc quand l'application a déjeuné, le film joue bien mais avant que le mouvement joue .. mon dossier de xib de FirstViewController montrent d'abord alors le film commence à jouer! Pourquoi ? voici mon code:J'ai un problème avec MPMoviePlayerController [iPhone SDK]
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath = [bundle pathForResource:@"movie" ofType:@"m4v"];
NSURL *movieURL = [[NSURL fileURLWithPath:moviePath] retain];
MPMoviePlayerController *IntroMovie = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
IntroMovie.movieControlMode = MPMovieControlModeHidden;
[IntroMovie play];
}
Quelle a été votre application pour le déjeuner? :) –