<!--
{
  "availability" : [
    "iOS: 3.2.0 - 9.0.0",
    "iPadOS: 3.2.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/dismissMoviePlayerViewControllerAnimated()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(im)dismissMoviePlayerViewControllerAnimated"
  },
  "title" : "dismissMoviePlayerViewControllerAnimated()"
}
-->

# dismissMoviePlayerViewControllerAnimated()

Dismisses a movie player view controller using the standard movie player transition.

```
func dismissMoviePlayerViewControllerAnimated()
```

## Discussion

If the receiver’s [`modalViewController`](/documentation/UIKit/UIViewController/modalViewController) property does not contain a movie player view controller, this method does nothing.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)