MPMoviePlayer controlStyle

后端 未结 4 778
情话喂你
情话喂你 2021-01-21 10:54

I want to hide the controls from the MPMoviePlayer with this code:

-(IBAction)video:(id)sender {

NSBundle *bundle = [NSBundle mainBundle];
NSString *moviePath =         


        
4条回答
  •  难免孤独
    2021-01-21 11:28

    My player is set up in the viewDidLoad and this line hides the MPMoviePlayerController. I have intialised my MPMoviePlayer controller as *stream.

    stream.view.hidden = YES;
    

    Hope this helps!

提交回复
热议问题