How to hide AVPlayerViewController control bar?
问题 I've implemented iAd's Preroll Video Ad and I want to guarantee that my user will watch the entire advertisement. How do I hide the AVPlayerViewController 's control bar so the user can not tap "Done" and get out of the video before it finishes? self.canDisplayBannerAds = YES; [AVPlayerViewController preparePrerollAds]; player = [[AVPlayerViewController alloc] init]; player.showsPlaybackControls = NO; player.delegate = self; 回答1: You can use this code to do the same. You need to call play