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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:32:34+00:00 2026-06-02T10:32:34+00:00

I have a UITableView made of static cells, and each cell contains a UILabel

  • 0

I have a UITableView made of static cells, and each cell contains a UILabel which is populated with field data when the screen loads. There are more cells than can fit on one screen, so the table view scrolls. The UILabels are hidden at design-time and I want to set them visible once all the text properties have been set. I’ve been using the subviews property of the tableView to iterate through the labels to setHidden:NO but this only affects the labels within cells that are currently in view. How can I iterate through all the UILabels regardless of which ones are in view or not?

Thanks
Jonathan

  • 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-02T10:32:36+00:00Added an answer on June 2, 2026 at 10:32 am

    You can address this issue inside your tableView:cellForRowAtIndexPath: method.

    Assuming that you have implemented your static cells the way Apple’s guide suggests, your tableView:cellForRowAtIndexPath: should look like a sequence of if-then-else statements returning the cells provided through IBOutlet objects:

    if (indexPath.row == 0) {
        return cell1;
    } else if (indexPath.row == 1) {
        return cell2;
    } // .. and so on
    

    Modify this code as follows:

    UITableViewCell *res = nil;
    if (indexPath.row == 0) {
        res = cell1;
    } else if (indexPath.row == 1) {
        res = cell2;
    } // .. and so on
    // Call your custom code that makes the label visible
    if (allTextPropertiesHaveBeenLoaded) {
        [res setMyLabelVisible];
    }
    return res;
    

    When all text properties have been set, call reloadData to force all cells to go through your tableView:cellForRowAtIndexPath: and get reconfigured.

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

Sidebar

Related Questions

I've made a UITableView with cells which have different height. On each cell, I've
I have a UITableView which contains names in each row alongwith images for each
I have TableCellViewController for managing cells in my UITableView. Each cell has a label
I have a UITableView on a view. This UITableView has cells which are made
I have cells in UITableView , I have made custom frame for the label
I have made up a few different custom cells in my UITableView in Interface
I have UITableView and cell's are customized and have a UIImage with UIbutton, UIlabel
I have a UITableview made up with a custom cell loaded from a nib.
I have a UITableView populated with a bunch of music players that I've made
I have made a view in the application that shows a UITableView. It will

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.