我已经尝试过了,但它不起作用,我在过去 7 个小时里一直在努力解决这个问题,请帮助我。我想将自定义按钮添加到 MPMoviePlayer 的全屏视图。
代码:
moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
        [self.view addSubview:moviePlayerController.view];
        moviePlayerController.fullscreen = YES;
        UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:[NSBundle mainBundle]];
        CustomControlsViewController *overlay = (CustomControlsViewController*)[mainStoryBoard instantiateViewControllerWithIdentifier:@"Custom Controls"];
        [moviePlayerController.view addSubview:overlay.view];
        [moviePlayerController play];