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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:25:45+00:00 2026-05-15T19:25:45+00:00

I’m using the standard Apple moviePlayer sample code and have customized it to play

  • 0

I’m using the standard Apple moviePlayer sample code and have customized it to play only podcasts like:

-(IBAction)playPodcast:(id)sender{
movieURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@", podcastURI]];
if (movieURL)
{
    if ([movieURL scheme])  // sanity check on the URL
    {
        
        // initialize a new MPMoviePlayerController object with the specified URL, and
        // play the movie
        [self initAndPlayMovie:movieURL];
    }
}   
    }

-(void)initAndPlayMovie:(NSURL *)movieURL1
{
// Initialize a movie player object with the specified URL
MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:movieURL1];
if (mp)
{
    // save the movie player object
    self.moviePlayer = mp;
    [mp release];
    
    // Apply the user specified settings to the movie player object
    [self setMoviePlayerUserSettings];
    
    // Play the movie!
    [self.moviePlayer play];
}
   }

I’m calling "playPodcast" function on click of a tableView cell button.
But application is crashing at [self.moviePlayer play]; and it’s giving me an error:

 *** -[PodcastTableViewCell playPodcast]: unrecognized selector sent to instance 0x10c9b90
 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[PodcastTableViewCell playPodcast]: unrecognized selector sent to instance 0x10c9b90'

where PodcastTableViewCell is my podcast tableviewcell identifier.

What can I try next?

  • 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-15T19:25:46+00:00Added an answer on May 15, 2026 at 7:25 pm

    As far as I see at the moment, the problem lies within you PodcastTableViewCell.
    Apparently it tries calling playPodcast without the necessary parameter.
    you now have two possibilities:

    • add a second playPodcast Method without parameter
    • change your playPodcast call withing your PodcastTableViewCell like this: [probablyAViewcontroller playPodcast:self]

    I think the real issue here is wether to use IBAction Methods or not. Or if you have functionality that you use in several places (i.e. from IBActions as well as from within your code) it’s a matter of design / like / dislike where to place the “actual” code.

    what I usually do is, putting non-UI related code within non IBAction methods..

    hope i could help a bit.

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

Sidebar

Ask A Question

Stats

  • Questions 514k
  • Answers 514k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer When you use a function without declaring it first, C… May 16, 2026 at 6:21 pm
  • Editorial Team
    Editorial Team added an answer As per Noon, consider the use of Areas As per… May 16, 2026 at 6:21 pm
  • Editorial Team
    Editorial Team added an answer With ZF version 1.10.8 minimal code required to post on… May 16, 2026 at 6:21 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I want use html5's new tag to play a wav file (currently only supported
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I want to count how many characters a certain string has in PHP, but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

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.