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

  • Home
  • SEARCH
  • 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 3309450
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:38:32+00:00 2026-05-17T21:38:32+00:00

Wonder if anyone can help me. I have a setup whereby a main menu

  • 0

Wonder if anyone can help me. I have a setup whereby a main menu presents the main game as a modal view controller. At this point it also stops playing the main menu music.

The problem is that when the game view controller dismisses itself (e.g when user quits game) and returns to the main menu I cannot get the main menu music to start playing again.

Is there some way I can get the music in the main menu to start playing again ? E.g a delegate method that is called when the main game dismisses ?

Thanks,

Martin

  • 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-05-17T21:38:33+00:00Added an answer on May 17, 2026 at 9:38 pm

    You can do it with the NotificationManager

    // set up notification
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(playMusic:) 
                                             name:@"musicNotification"
                                             object:nil];
    
    // send notification
    [[NSNotificationCenter defaultCenter] postNotificationName:@"musicNotification"
                                             object:self];
    // clean up notification
    [[NSNotificationCenter defaultCenter] removeObserver:self];
    [super dealloc];
    
    - (void) playMusic:(NSNotification *) notification
    {
        // play the music here
        if ([[notification name] isEqualToString:@"musicNotification"])
            NSLog (@"Received musicNotification!");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wonder if anyone can help me with this problem. I have created a Window
I wonder if anyone can help? I have a list with a collection of
I wonder if anyone can help with the following. I have integrated both iAds
wonder if anyone can help. Bascially I'm working on a site, and a chunk
I am really stuck on a rewrite rule and wonder if anyone can help.
I wonder if any of you could help with this problem. The following code
Hi and thank you again for looking into this question. I have one mysql
I am now trying to solve an exponential equation in MATLAB as a part
I am calling abs(int) in a SurfaceView class and getting error msg that abs(int)
I want to write a C program which makes use of the linux crypto-api

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.