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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:13:26+00:00 2026-05-22T18:13:26+00:00

I have a TableViewController which is represented by a popover, that is displayed by

  • 0

I have a TableViewController which is represented by a popover, that is displayed by selecting a bar button item on a tool bar. I’m having a problem however that when I select an item from the table in the popover it doesn’t update the view (affirmaPDFViewController)

Here is the DidSelectRowAtIndex method for my PDFTableController (the popover):

- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

affirmaPDFViewController.detailItem = [NSString stringWithFormat:@"%@", [listOfPDF objectAtIndex:indexPath.row]];
affirmaPDFViewController.i = indexPath.row;
NSLog(@"%d", indexPath.row);
NSLog(@"%@", [listOfPDF objectAtIndex:indexPath.row]);
NSLog(@"%d", affirmaPDFViewController.i);
NSLog(@"%@", affirmaPDFViewController.detailItem);
}

Here the indexPath.row and the objectAtIndex:indexPath.row all return the correct values. However when I assign the variables from affirmaPDFViewController to those values they just return 0 and null.

I’ve been told it is because I haven’t created an instance of affirmaPDFViewController. However, I’m not sure how to create such an instance. What code would I put in this method to get this to work?

Thanks in advance!

  • 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-22T18:13:27+00:00Added an answer on May 22, 2026 at 6:13 pm
    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        affirmaPDFViewController = [[NameOfClassGoesHere alloc] initWithNibName:@"NibNameGoesHere" bundle:nil]; 
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an annoying problem, that may have a simple answer! I have a
I have a navController and tableViewController set up such that selecting a table row
Maybe a FAQ at this website. I have a TableViewController that holds a form.
I have an app which got 4 TableViewController which each make an instance of
I have two View Controllers: TableViewController (which is used as a modal view controller)
I have a TableViewController which is supposed to load a ViewController with a WebView
I have a TableView, when you click add + button in nav bar, it
I have splitViewController which has as MasterViewController some viewController and as DetailViewController some tableViewController.
I have a application which uses two instances of one TableViewController in two different
I have a navigation controller which I push a new tableviewcontroller for each received

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.