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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:07:05+00:00 2026-06-01T09:07:05+00:00

I am using a static UITableview, set up in a storyboard. For some cells

  • 0

I am using a static UITableview, set up in a storyboard. For some cells (Style = Right detail) I set the detailTextlabel.text in viewWillAppear like this:

   self.recentProductsCell.detailTextLabel.text = description;

For this cell the label does not appear. If I NSLog the text it shows to be OK.
I checked that the detailTextLabel is not hidden.
I did not change any of the other properties in storyboard.
The cell has a detailDisclosure accessory, but setting it to something else did not help.

Then the strange thing:
If I run and the detailTextlabel does not show, I select the row by tapping on it and moving my finger. From then the detailTextLabel does show! Even when hiding and reshowing the view, the label keeps visible. Resetting and setting it in code however, makes the label disappear again.

Could I be doing something wrong, or is this a bug?

Edited: Checked in both 5.0 and 5.1, same behavior.
I found an ugly workaround by Selecting and Deselecting this row in code in the viewWillAppear. So I added:

[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:3 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionNone];
[self.tableView deselectRowAtIndexPath: [NSIndexPath indexPathForRow:3 inSection:0] animated:NO];

It works, but I can see the row being selected and deselected. So I also changed the selectionStyle, but now this row flickers when the view is shown.

Extra comment: In the same viewWillAppear, I set the detailLabel of other static cells, and they show up just fine.

  • 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-01T09:07:06+00:00Added an answer on June 1, 2026 at 9:07 am

    I did find when the detailLabel did not show up, not why, IMHO it’s a bug.

    If the previous value for the detailLabel.Text was nil or an empty string, the detailLabel does not show up after setting it to the new value.
    If I set the detailLabel to anything else than nil/empty (initially), and then set it to something else, the new value correctly shows up.

    The reason for not showing is probably more complicated then just being empty before, but in my case this solves my problem. I can probably show the detailLabel in the background colour if I want it to be “empty”.

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

Sidebar

Related Questions

I want to wrap text of the cells in the UITableView. I am using
I have a UITableView and I want some cells to be the standard UITableViewCells
Using Storyboard in iOS 5, I added a uitableview into an existing view controller
This question is related to UITableView issue when using separate delegate/dataSource , though I
I have created a UITableView with two cells, username and password using the code
i am using a custom uitablecellview like i used to do .But ,unfortunately ,this
I am using two UItableView in my apps. I set their delegate and datasource
I am using a UITableView and I'm noticing that the cells in my tableview
I'm using static URLs in my RoR project. There is really no controller or
I saw one book on C++ mentioning that navigating inheritance hierarchies using static cast

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.