I am creating an iPad add and I am using a MPMoviePlayerViewController to playback a video.
The video is occupying the entire iPad screen like this.
playerViewController.view.frame = self.view.frame;
I need a way for the user to be able to press a button to go to a different screen.
I notice that automagically a done button appears in the nav controller when I create a MPMoviePlayerViewController.
My questions:
a.) Is there anyway to hook into the existing done button? Basically I just want to dismiss the view controller.
b.) If that won't work. How can I add my own custom button? As I mentioned above, the MPMoviePlayerViewController is occupying the entire screen. One idea I had was to create the MPMoviePlayerViewController in a frame and leave a bit of vertical space so I could add my own tool bar.
I would prefer suggestions on how to implement a.)?
If that is not possible, maybe some suggestions on how dismiss the MPMoviePlayerViewController by way of some button press?
All help appreciated.