UIViewController MediaPlayer Additions Reference
| Inherits from | |
| Framework | /System/Library/Frameworks/MediaPlayer.framework |
| Availability | Available in iOS 3.2 and later. |
| Declared in | MPMoviePlayerViewController.h |
Overview
This category adds methods to the UIViewController class for presenting and dismissing a movie player using a specific set of animations. The transitions used by these methods are the same ones used by the YouTube and iPod applications to display video content.
Instance Methods
dismissMoviePlayerViewControllerAnimated
Dismisses a movie player view controller using the standard movie player transition.
- (void)dismissMoviePlayerViewControllerAnimated
Discussion
If the receiver’s modalViewController property does not contain a movie player view controller, this method does nothing.
Availability
- Available in iOS 3.2 and later.
Declared In
MPMoviePlayerViewController.hpresentMoviePlayerViewControllerAnimated:
Presents the movie player view controller using the standard movie player transition.
- (void)presentMoviePlayerViewControllerAnimated:(MPMoviePlayerViewController *)moviePlayerViewController
Parameters
- moviePlayerViewController
The movie player view controller to present.
Availability
- Available in iOS 3.2 and later.
Declared In
MPMoviePlayerViewController.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-03-02)