NSURL *url = [self localMovieURL];
MPMoviePlayerViewController *playerView = [[MPMoviePlayerViewController alloc] initWithContentURL:url];
MPMoviePlayerController *moviePlayer = [playerView moviePlayer];
moviePlayer.controlStyle = MPMovieControlStyleDefault;
moviePlayer.scalingMode = MPMovieControlStyleFullscreen;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayer];
[self setMessageLabel];
[playerView.view addSubview:message];
[self.navigationController presentMoviePlayerViewControllerAnimated:playerView];
你好,
somthing wrong .. mpMoviePlayerViewController。
来源> 'message(UILabel)'是全局变量。
视频播放>全屏按钮点击>消失的标签......
我不知道为什么要去标签。
是的,请帮助我。答案 0 :(得分:0)
只是预感,但您应该尝试关注MPMoviePlayerDidEnterFullscreenNotification
通知,然后在通知处理程序中执行以下操作,
[message.superview bringSubviewToFront:message];