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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:54:55+00:00 2026-05-26T05:54:55+00:00

I want to configure the table cell with 3 field values in each row.

  • 0

I want to configure the table cell with 3 field values in each row. I have three database fields like Amount, Note, and DueOn. I want to configure the cell values so that Amount is a title, and DueOn and Note are values. How is this possible?

  • 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-26T05:54:55+00:00Added an answer on May 26, 2026 at 5:54 am

    I think the best approach is to create a custom TableViewCell by subclassing the UITableViewCell. Here you will need to give @property and synthesize the labels which you want to access and assign values to.

    Then what you can do is just create a object of the custom cell in your tableView:cellForRowAtIndexPath: and then just assign the values to the labels which are in custom cell.

    Also I would advise you to add the labels into the custom cell class programmatically and not through XIB as this would save you some amount of the complexities.

    ADVANTAGES OF THIS APPROACH:

    1) This approach simplifies the complexity as this would enable you to make future changes and updates related to custom cell easier to make as you will have to make changes only at one place.

    2) In comparison to an approach where you add the labels on the fly, in cellForRowAtIndexPath:, also the problem of dequeuing and problems regarding duplication of labels everytime the cell is created doesn’t occur in this case as whole set of labels are managed in an object and you just need to reuse the cell and other things are managed automatically.

    Hope this helps.

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

Sidebar

Related Questions

i have an customized cell that is loaded in table view cell and each
I have an xml file that I want to configure using a bash script.
In the filesystem I have /file.aspx /directory/default.aspx I want to configure IIS so that
I've hired a new VPS and have root access. Now i want to configure
I want to ensure I have done all I can to configure a system's
I have a table and I want to show there some text; but I
I have TableCellViewController for managing cells in my UITableView. Each cell has a label
I'm writing a simple bean that I want to configure with a table name,
I have three rows which are configured programmatically. I want to place an image
I have a ASP.NET project and PostgreSQL database. In my database, I have table

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.