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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:44:12+00:00 2026-05-15T00:44:12+00:00

It is an iPad app based on SDK 3.2. I have a MainUIView, that

  • 0

It is an iPad app based on SDK 3.2.

I have a MainUIView, that is subclass from UIView, it have a UIButton and a UILabel. When user press the UIButton, the pop over control will be appeared with a table view. When the user select a cell from the table view, the UILabel changes content base on the user click, and the pop up table view will disappear.

The question is, how can I pass the “selected cell” to the UILabel. I am thinking making a “middle man” object. When the user click the UIButton, and the “middle man” will pass to the table. When the cell is selected, the “middle man” will store the idx, and call the UILabel change content from the value of “middle man”.

But I think it is pretty complex to implement, is there any easier way to implement it? thz u.

  • 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-15T00:44:12+00:00Added an answer on May 15, 2026 at 12:44 am

    The standard way to do this is to call a delegate method when the popover closes with a selected value. The method will have been created on the view controller that calls the popover and handles setting the value.

    In your view controller:

    - (void) popoverDone:(id)sender {
        label.text = [sender someValue];
        [sender dismissPopoverAnimated:YES];
    }
    

    And in the popover:

    - (void)tableView:tableView didSelectRowAtIndexPath:indexPath {
        [delegate performSelector:@selector(popoverDone:) withObject:self];
    }
    

    There are other ways of doing this, but the principle is the same.

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

Sidebar

Related Questions

Ok I have a basic iPad app that asks for 5 search/filter criteria from
I have a split view controller-based iPad app that uses a Web View to
In an iPad app, I'm using a custom subclass of UIView with UIViewController. Here's
I have an iPad app that has a UITableViewController that implements the NSFetchedResultsControllerDelegate .
I have an app that runs on iPad and iPhone running iOS 3.2, but
I am doing an iPad app based on a UISplitViewController. I have a little
I'm designing an iPad app that will have a custom grid in it. The
I have created split view based ipad app, where master view is table view
I am trying to develop a splitView based iPad app, that displays the split
I have an iPad app that uses the storyboard board feature and then 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.