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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:16:01+00:00 2026-05-23T15:16:01+00:00

in main view a have an navigationController on click on a row a call

  • 0

in main view a have an navigationController on click on a row a call the detailview and add a button

seminareListinView.m

#import "SeminareListingView.h"
#import "Seminar.h"


-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    //gehe zurück zum ersten View
    //NSLog(@"Received Data in seminareArray");

    Seminar *dvController = [[Seminar alloc] initWithNibName:@"Seminar" bundle:nil];

    NSString *selectedSeminarURL = [seminarURLArray objectAtIndex:indexPath.row];
    //NSString *selectedNextXMLFile = [kategorienNextXMLFileArray objectAtIndex:indexPath.row];

    dvController.seminarURLFromXML = selectedSeminarURL;
    //dvController.XMLFile = selectedNextXMLFile;

    [self.navigationController pushViewController:dvController animated:YES];


    //Zeige den PDF Download Button
    UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"PDF Download" style:UIBarButtonItemStylePlain target:self action:@selector(showMenu)];

    //anotherButton.action = @selector(showMenu);

    dvController.navigationItem.rightBarButtonItem = anotherButton;

    [anotherButton release];

    [dvController release];
    dvController = nil;


    //[[self navigationController] popViewControllerAnimated:YES];
}

in the seminar view a have this method

seminar.m

- (void) showMenu
{
    UIActionSheet *myMenu = [[UIActionSheet alloc]
                             initWithTitle: @"Überschrift"
                             delegate:self
                             cancelButtonTitle:@"Abbrechen"
                             destructiveButtonTitle:@"Etwas unwiderrufliches"
                             otherButtonTitles:@"Eins", @"Zwei", nil];
    [myMenu showInView:self.view];
}

but i get an error by clicking on Button

2011-07-07 12:57:31.009 Seminar App2[4352:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SeminareListingView showMenu]: unrecognized selector sent to instance 0x6305f90'
*** Call stack at first throw:
  • 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-23T15:16:01+00:00Added an answer on May 23, 2026 at 3:16 pm

    In

    UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"PDF Download" style:UIBarButtonItemStylePlain target:self action:@selector(showMenu)];
    

    Cange to:

    UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"PDF Download" style:UIBarButtonItemStylePlain target:dvController action:@selector(showMenu)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main table view and a detail view. when i click cell
I have a navigation based app. Press a button on main view, then I
The main view of my app don't have a UINavigationController but when a button
I have an application composed of a main view and a secondary view which
I have an Android app with a ListActivity in the main view. The list
I have an iPhone app that hides the status bar. However, my main view
I'm writing a Silverlight app using the MVVM pattern. I have a main view
I have a view which was working fine when I was joining my main
I have a view that sets its hidden when the user taps the main
I have a modal view controller that is presented from my main view, I

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.