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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:22:02+00:00 2026-06-11T05:22:02+00:00

I have an entity that represents a Person and a UITableViewCell subclass that displays

  • 0

I have an entity that represents a Person and a UITableViewCell subclass that displays a few attributes of said person.

The question is this: where do you normally configure (set the text, picture, etc) the table cell? Do you:

A) Configure it in the UITableViewController subclass while implementing tableView:cellForRowAtIndexPath:?

B) Pass the Person object into the UITableViewCell subclass and let the subclass configure itself?

C) Something entirely different?

Bonus Points

If you answered with option A, what about this?

Let’s say that for the first row in the table view, I need to bold all of the labels’ text. Does that change your opinion at all? You see what I’m getting at here, if you configure the cell in the view controller, the view controller will become bloated with information it doesn’t really need. But, if you put all the configuration inside of the table cell subclass, you lose some reusability. It is definitely a trade-off, but I’m wondering what most engineers choose.

  • 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-11T05:22:04+00:00Added an answer on June 11, 2026 at 5:22 am

    What do you mean by “configure”? Do you mean adding the Person’s data to the cell? I would do this in cellForRowAtIndexPath:, which is usually part of the view controller (it is common to set the delegate of a table view to the view controller). The Person’s data is ideally part of some model in your application. You can fetch the Person for the cell by using the index path, something like

    Person *personForThisCell = [SomeModel getPersonAtIndex: [indexPath row]];
    

    And then use that data to set the values of the cell.

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

Sidebar

Related Questions

I have an entity that has a few relations. I need to clone this
I have a core data entity that represents the attributes of a product, as
I have this table that represents a weak entity and is a typical table
Let's say we have an entity that has attributes att1 and att2, where att1
I have an entry on a core data entity that represents a NSTimeInterval. First
I have an entry on a core data entity that represents a NSTimeInterval. First
I have an entity in EF4 that represents a device in the field being
Here briefly are the business requirements. I have an entity called PricingSchedule that represents
I have an entity class that represents an object brought over from MySQL. One
I have two tables in my database schema that represent an entity having a

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.