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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:18:42+00:00 2026-05-22T15:18:42+00:00

I have a UITableView in a UINavigationController. On the navigation bar I have a

  • 0

I have a UITableView in a UINavigationController. On the navigation bar I have a button called add. When this button is pressed it presents a UIPopoverController, where user can input data to be added as a new row/cell in the UITableView. My issue is how can I add a new cell to the UITableView from the UIPopover? Do I pass in the array data to the UIPopOver root controller?

  • 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-22T15:18:43+00:00Added an answer on May 22, 2026 at 3:18 pm

    There are two solutions to this that I’m aware of. One would be to send a notification from the popover to the root controller and apply the necessary code to update the tableView in the handleNotification method.

    The other, one that I personally use, is to set up a delegate protocol for the popover. You’ll have to set it up something like this:

    @protocol PopoverDelegate
    - (void)addNewCell;  // you can add any information you need to pass onto this if necessary such as addNewCellWithName:(NSString *)name, etc.
    @end
    
    @interface MyPopoverViewController..... {
        id <PopoverDelegate> delegate;
        // the rest of your interface code;
    }
    @property (nonatomic, retain) id delegate;
    // any other methods or properties;
    @end
    

    Then in your root view controller header file, you need to add the delegate

    @interface RootViewController .... <PopoverDelegate> {
    

    Then in your root view controller implementation file, assign the popover delegate when you instantiate it. For example:

    MyPopoverViewController *vc = [[MyViewController alloc] init];
    vc.delegate = self;  // this is where you set your protocol delegate
    myPopover = [[UIPopoverController alloc] initWithContentViewController:vc];
    myPopover.delegate = self;
    [vc release];
    

    Finally, you’ll add your protocol method somewhere in the code

    - (void)addNewCell {
        // do what you want with the tableView from here
    }
    

    Sorry that’s a bit long. I just wanted to make sure I was thorough. Hope it helps

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

Sidebar

Related Questions

In a UINavigationController I have a UITableView . I use a settings-button to allow
I have a need to display a UITableView containing a user's account credentials. For
I have an array of objects which populate a UITableView . When a user
In an app I'm working on, I have a plain style UITableView that can
in my app i have an UITabBarController with UINavigationControllers initialized like this UINavigationController *newsNavigationController
I have an annoying problem. I have an UINavigationController with an UITableView in the
I have a UITableView cell that is going to have a variable size depending
I have got an UITableView. How to simply fill it with three elements, for
I have a UIView with a UITableView for a subview. The UIView has an
I have a simple UITableViewController in a UINavigationController that displays a list of strings

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.