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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:31:35+00:00 2026-05-30T16:31:35+00:00

I have a UITableViewController with static cells, created in a storyboard (Xcode 4). For

  • 0

I have a UITableViewController with static cells, created in a storyboard (Xcode 4).

For each cell, I assigned a TableViewCellController in order to have custom pickers (http://www.wannabegeek.com/?p=104, and an example of use here: http://timroadley.com/2012/02/26/core-data-basics-part-6-core-data-uipickerview/).

In my UITableViewController I create a new object, and I would like the TableViewCellController to have access to it.

The UITableViewController is set as delegate of the TableViewCellController, but in the init method (custom initializeInputView, called from initWithCoder) of the TableViewCellController, the delegate isn’t defined yet, so I can’t access the object by using self.delegate.

What’s the best way to pass that value from the UITableViewController to the TableViewCellController, or to access it from the TableViewCellController, upon initialization ?

Thanks

  • 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-30T16:31:36+00:00Added an answer on May 30, 2026 at 4:31 pm

    So here’s the way I did it. I used willDisplayCell in my parent UITableView, and cast the type of the static cell controller in order to access it’s dateValue property and initialize it.

    - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
    {
        switch (indexPath.section) {
            case 0:
                switch (indexPath.row) {
                    case 0:
                        ((DateInputCellController *) cell).dateValue = self.event.date;
                        break;
                    case 1:
                        ...
                        break;
                    default:
                        break;
                }
                break;
    
            default:
                break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a static table cell in a .xib, however when it is
I have a UITableViewController with custom cells, based in Tweetie's Fast scrolling example and
I have this UITableViewController which i made a Static Cells using Interface Builder and
I have 8 cells that are being built in my UITableViewController. I would like
I've a UITableViewController with a lot of cell, but they all have the same
I have a UITableViewController. When you select a cell, it calls init on a
I'm developing an app that has an UITableViewController with static cells . Those static
I have UITableViewController. In cellForRowAtIndexPath method I added custom setup for label: UILabel *lblMainLabel
My application is navigation base. I have UITableViewController.when i tap a cell i need
Following the documentation on custom cells from a NIB (the Dynamic option), I have

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.