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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:38:56+00:00 2026-05-23T08:38:56+00:00

I have been trying to implement a comment engine in my app (UItableView) but

  • 0

I have been trying to implement a comment engine in my app (UItableView) but have been facing challenges

1) How can I add the comment in the table cell with the format of “user name” + “comment text” whereby the user can click on the username and the corresponding user profile will appear. The comment text will just be a static data in the cell

2) How can I dynamically calculate the height of all the comments which will eventually lead to the determination the entire cell height?

I see that Instagram’s comment engine is what I have in mind (see below)

enter image description here

Can anyone advise me on how I can implement the comment engine like Instagram? I have tried to subclass a UIControl and add a UILabel (as a property to it). But this approach seems a little confusing and inflexible. So any advise on this will be greatly appreciated.

  • 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-23T08:38:57+00:00Added an answer on May 23, 2026 at 8:38 am

    If you comply to the MIT licence, you can use my OHAttributedLabel class.

    This will allow you to use NSAttributedStrings with different styles for the words of the label (name in bold and blue, comment in black, for example) and add hyperlinks on the text too.

    You can also use a properly configured instance (default font, size, etc) and its sizeThatFits: method to compute the size needed for the text and use the height of the returned size to compute your cell height accordingly.

    [EDIT] As pointed by @Simon Lee, be warned that this uses CoreText, which is only available in iOS 3.2 for iPhone or iOS 4.0 on iPad.

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

Sidebar

Related Questions

I have been trying to implement Win32's MessageBox using GTK. The app uses SDL/OpenGL,
I have been trying to implement the delete BST function but I don't know
I have been trying to implement XOR linked list and its operations but I
I've been trying to implement unit testing and currently have some code that does
I have been trying to understand the way ActionScript's events are implemented, but I'm
I have been trying to implement a CheckBox Node Tree, where the parent nodes
I have been trying to implement hash-tables using uthash.h, following the (excellent) documentation I
I have been trying to implement Nhibernate.Linq 1.0.0.4000 together with Nhibernate 2.1.2.4000. After what
OK. So I have been trying to implement a timer. Now a very weird
I am a beginner interested in Haskell, and I have been trying to implement

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.