2

背景画像はアニメーション化された空です

設定ページ (静止画像) とホームページ (アニメーション画像) を切り替えると、画面のアニメーションがしばしば途切れ、1 つの黒い画像になります。

誰かが理由または解決策を提案できますか?

ありがとう!

Henry Color Vision アプリ

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.mp = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"iPhone4" ofType:@"mov"]]];
    mp.repeatMode = MPMovieRepeatModeOne;
    [mp.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    mp.scalingMode = MPMovieScalingModeFill;
    [mp setFullscreen:YES];
    mp.controlStyle = MPMovieControlStyleNone;
    [self.view addSubview:mp.view];
    [self.view sendSubviewToBack:mp.view];
    [mp prepareToPlay];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    [self.mp play];
}
4

1 に答える 1