UIViewController.PresentMoviePlayerViewController 方法

定义

使用标准切换显示电影控制器。

[Foundation.Export("presentMoviePlayerViewControllerAnimated:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVPlayerViewController' (AVKit) instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentMoviePlayerViewController (MediaPlayer.MPMoviePlayerViewController moviePlayerViewController);
abstract member PresentMoviePlayerViewController : MediaPlayer.MPMoviePlayerViewController -> unit
override this.PresentMoviePlayerViewController : MediaPlayer.MPMoviePlayerViewController -> unit

参数

moviePlayerViewController
MPMoviePlayerViewController

MPMoviePlayerViewController要呈现的 。

属性

注解

除了 DismissMoviePlayerViewController(),此方法还可用于控制 的呈现和消除 MPMoviePlayerViewController

适用于