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 8749975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:47:01+00:00 2026-06-13T12:47:01+00:00

My app uses video displayed by a view controller in a view (View 1)

  • 0

My app uses video displayed by a view controller in a view (View 1) as a background for the app’s menu/navigation. Buttons lay over the top of the video and depending on where the video is, the buttons navigate to different sections of the app. It works fine, until I navigate away to another section (View 2 etc) and then return to View 1. After that, the notifications crash in View 1:

[NSKeyValueObservance movieStateChangeCallback:]: unrecognized selector sent to instance 0x13e920
2012-10-27 08:50:04.830 AppName[13707:707] * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSKeyValueObservance movieStateChangeCallback:]: unrecognized selector sent to instance 0x13e920’

Here are the notifications I’m adding to View 1’s init method:

       [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieStateChangeCallback:) name:MPMoviePlayerPlaybackStateDidChangeNotification object:player];

       [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(movieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:player];

player is a property of View 1 that is declared thusly:

@property (strong) MPMoviePlayerController *player;

I realize that this probably means that the player is being deallocated? Everything else works fine when I return to View 1 including the video, it is just the notifications which crash.

View 1 is being re-initialized when the user returns to it.

I am using ARC.

  • 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-13T12:47:02+00:00Added an answer on June 13, 2026 at 12:47 pm

    If a view controller is not currently visible and a memory warning occurs, it will remove all of it’s views. These are then recreated when it becomes visible again. You’re not removing yourself from the notification center when View1 is being deallocated so it’s still asking to receive notifications.

    Try adding this to your View1 class :

    - (void)dealloc {
        [[NSNotificationCenter defaultCenter] removeObserver:self];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iPad app which uses webKit to process video content. Some
I have a flex 3 app that uses netstream and a video object to
My app uses a landscape only view and requires the user to answer a
I'm making an app that uses a video feed. There will be several UI
My app uses the UIImagePickerController to record a video, and I'm then uploading it
I'm developing iOS app which uses HLS. In our video platform we use Nginx
I'm building this WP7 app that uses a video game API to get the
My app uses Handler and sendEmptyMessageDelayed to get timed messages that produce debug output.
My app uses the typical pattern of starting a CLLocationManager and then calling stopUpdatingLocation
My app uses Barcode Scanner. I want to launch the scanner when I open

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.