Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:22:02+00:00 2026-06-09T00:22:02+00:00

I am having a view Controller lets say A. I am presenting another View

  • 0

I am having a view Controller lets say A.
I am presenting another View Controller lets say B on A.
In B’s view will appear I am creating a object of MPMoviePlayerController and presenting it on B.

Now in when movie player stop playing movie I am doing follwoing:

[self dismissMoviePlayerViewControllerAnimated];
[self dismissModalViewControllerAnimated:YES];

But this is only dismissing movie player. I want to go on my A’s view.
How can I dismiss two viewcontrollers back to back.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:22:03+00:00Added an answer on June 9, 2026 at 12:22 am

    This is because of your movie player is being dismissed and you are trying to dismiss your view.
    Use following:

    [self performSelector:@selector(dismissSelfView) withObject:nil afterDelay:0.6];
    
    - (void)dismissSelfView {
          [self dismissModalViewControllerAnimated:YES];
    }
    

    Also please take note that [self dismissModalViewControllerAnimated:YES]; is deprecated in ios5 so better to use: dismissViewControllerAnimated:completion:. Please check UIViewController Class Reference.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble navigating to a different controller view from another controller action. e.g.
I'm having an issue with routing in codeigniter. Lets say I have a controller
i have an ASP tree view having a Node so now, i have to
How do I go about having two view models communicate with one another using
I am having single table view in a view controller. That table view lists
I'm trying to make a view controller that will always load the same nib.
I've having tab view controller in my MainWindow.xib file. It has 3 tabs. The
I'm having difficulty thinking through the design tradeoffs of changing the root view controller
I am having a problem with a table and showing another view when the
I am having a application in which one view controller is pushed and when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.