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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:26:53+00:00 2026-06-08T12:26:53+00:00

Thats how I present my popover – (IBAction)openImage:(id)sender { OptionViewController *option = [[OptionViewController alloc]

  • 0

Thats how I present my popover

- (IBAction)openImage:(id)sender {

        OptionViewController *option = [[OptionViewController alloc] init];
        option.delegate = self;

        if (!popoverController) {
            popoverController = [[UIPopoverController alloc] initWithContentViewController:option];
        }
        popoverController.delegate = self;
        [popoverController setPopoverContentSize:CGSizeMake(320, 88)];
        [popoverController presentPopoverFromRect:((UIButton *)sender).bounds inView:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

}

There is option view controller

#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    // Return the number of sections.
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    // Return the number of rows in the section.
    return 2;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] ;
    }

    NSInteger section = [indexPath row];

    switch (section) {
        case 0: // First cell in section 0
            cell.textLabel.text = @"From library";
            break;
        case 1: // Second cell in section 1
            cell.textLabel.text = @"Make a photo";
            break;
        default:
            // Do something else here if a cell other than 1,2,3 or 4 is requested
            break;
    }
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// I set breakpoints there. For now it doesn't work.
}

OptionViewController is a UITableViewController (inherit) that contain UITableView with delegate and datasourse = self (for OptionViewController instance)

I also using XIB. In the XIB UITableView auto-resizing mask setups for each side (left, top, right, bottom)

in other method I don’t invoke any additional method that can lock my view or other my actions.

There is a screenshot with a Color offscreen render option

enter image description here

  • 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-08T12:26:54+00:00Added an answer on June 8, 2026 at 12:26 pm

    I think you have set the delegate of OptionViewController incorrectly.
    If implementation of delegate methods are in OptionViewController then you should remove setting option.delegate or set it to itself: option.delegate = option;.

    Your dataSource delegate (option.dataSource) looks to be working but not the delegate (option.delegate).

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

Sidebar

Related Questions

I created my own class for PopoverController (Without subclassing UIPopoverController) to present ViewControllers in
I'm trying to present a view controller thats only half the height using [self
Is it impossible to present a popover controller from a view controller that's presented
I'm using a UIStoryboardPopoverSegue to present a popover for an iOS 5 iPad app.
I have a UIPopover that I want to use either -(BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController{ return NO;
I have a function I'd previously written to present a popover from a bar
I have a tableView that present a list of Books, each of the table
I'm developing a page that will present the user with a content slider, so
I am looking for the MySQL equivalent of CONTEXT_INFO that is present in SQL
I had read somewhere about one specific feature that is present in awk but

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.