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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:07:51+00:00 2026-06-17T11:07:51+00:00

I have a tableview setup with some static cells that I display in a

  • 0

I have a tableview setup with some static cells that I display in a popover. The problem is that the popover is always empty and I can’t seem to figure out why. I’ve removed all of the data methods in my tableviewcontroller so that isn’t the issue. Can anyone see any problems in the code below or point me at something I may be missing? Thanks!

TableViewController code:

@implementation ICAMDisciplineTableViewController
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.clearsSelectionOnViewWillAppear = NO;
   self.contentSizeForViewInPopover = CGSizeMake(400.0, 400.0);
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

#pragma mark - Table view delegate

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [self.delegate disciplineTableViewController:self
                           didSelectEnumItem:indexPath.row + 1];
}

@end

Code that shows the popover:

-(void)fireDisciplinePopOver
{
    ICAMDisciplineTableViewController *popoverTable = [[ICAMDisciplineTableViewController alloc] init];
    self.popOverController = [[UIPopoverController alloc]initWithContentViewController:popoverTable];
    self.popOverController.delegate = self;
    popoverTable.delegate = self;
    [self.popOverController presentPopoverFromRect:self.disciplineTextField.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}
  • 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-17T11:07:53+00:00Added an answer on June 17, 2026 at 11:07 am

    In your fireDisciplinePopover do this to get your UIViewController from your Storyboard:

      UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard"
                                                                     bundle: nil];
    
      ICAMDisciplineTableViewController *popoverContent = (ICAMDisciplineTableViewController*)[mainStoryboard
                                                                                 instantiateViewControllerWithIdentifier: @"ICAMDisciplineTableViewController"];
    

    Make sure to set the Storyboard ID for that UIViewController in your Storyboard– I just set it to your view controllers name above.

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

Sidebar

Related Questions

i have a tableView with 3 cells. i want to change .detailTextLabel of that
i have been trying to figure this out but i just can't.... for some
I have a UITableView with some cells in it that have people's names. When
I have a tableView that present a list of Books, each of the table
I have a TableView with 10 sections that are loaded from a plist file
I can't figure out how to set an NSDateFormatter for a static text table
I have a UITableView set up with some custom cells. I've turned on cell
Ok I've got a dreaded EXC_BAD_ACCESS that I can't seem to track down but
I have a bit of a problem where my check marks that i apply
I am trying to setup a UITableViewController so that its tableView belongs to my

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.