Using iOS 8.4, I have created an AVPlayerViewController with and AVPlayer. The video controls appear as expected and the video plays, but there is no "Done" button and xCode crashes whenever I try to lay one on the ViewController at the top of the view. An example I saw: Video Playback clearly shows a "Done" button on the upper left of the screen.
Do AVPlayerViewController and AVPlayer support a "Done" button? Is it possible to add one?
The existing answer suggested by the comment included Objective-C code.