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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:22:33+00:00 2026-06-04T05:22:33+00:00

I am new to iphone development. I am using xCode 4.2 with storyboard. I

  • 0

I am new to iphone development. I am using xCode 4.2 with storyboard. I am trying to get cells in my tableview to display several uilabels. They just aren’t appearing in my simulator. but the original cell.textLabel is appearing.

here’s what I did:
I created a new customcell.h/.m files that extend the UITableViewCell. I added some instance variables in the class. I went to the storyboard and in the class of the identity inspector of the tableviewcell, i changed it to point to customcell. I dragged and dropped some UIlabels into my new cell. I then went to the connection inspector to drag those “plus” icons with lines to connect to my new uilabels to my instance variables.

When I run my simulator, I don’t see any of my new ui labels. I only see the original uilabel of cell.textLabel. I can programmatically get and set cell.mylabel1, cell.mylabel2 etc…, which are new labels, but hey just are not appearing.

Additioanl Details
This i the cellForRowAtIndexpath function for my tableviewcontroller.

static NSString *CellIdentifier = @"Cell"; // this was the error, i needed to change this to CustomCell, or whatever it is in my storyboard

CustomCell *cell = (CustomCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell == nil) {
    cell = [[CustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell.mylabel1.text = @"hello"; // doesn't appear in simulator
cell.textLabel.text = @"world"; // does apepar in the simulator
  • 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-04T05:22:35+00:00Added an answer on June 4, 2026 at 5:22 am

    As David has alluded, the one missing piece here is that you need to reference the Identifier of the cell specified in the Storyboard:

    First, specify an identifier in the “Attributes Inspector” in the storyboard. You can do this by selecting the UITableViewCell and adding an identifier “ExampleCell” (for example). Second, reference this identifier in the code when creating the CustomCell.

    static NSString *CellIdentifier = @"ExampleCell";
    CustomCell *cell = (CustomCell *) [tableView  dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[CustomCell alloc] initWithStyle:UITableViewCellStyleDefault   reuseIdentifier:CellIdentifier];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new at iPhone development using xcode 3.2.6 and I am wondering how
I am new to iphone development, and i'm currently using xcode 4.2. I drew
I am Abbas,I am new to iPhone Development, Till tomorrow i am using xcode
I am new to iphone development. I am trying to store some data using
I am new to iPhone Application Development , I am using XCode 4.2 with
I'm new to iPhone development and I'm just trying out some simple drawing routines
Hope all of you doing great. I am new in Iphone development using xcode
I am new to iPhone development. I am building an app by using Xcode
I am new to iPhone development and trying to load PNGs using libpng but
I am new to iPhone development. I am using the below code to add

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.