我想創建一個應用程序與電影簡介就像gameloft遊戲。所以當應用程序已經發布時,電影播放良好,但在播放之前..我的FirstViewController xib文件首先顯示電影開始播放!爲什麼?這裏是我的代碼:我有一個問題,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];
}
你的應用程序有什麼午餐? :) –