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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:33:26+00:00 2026-06-06T03:33:26+00:00

I know this issue was posted before, and i fixed my code according to

  • 0

I know this issue was posted before, and i fixed my code according to their correction, but still not getting the detail of the cell working, only the main text. here is my code:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell==nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];//It's well initialized
}
cell.textLabel.text=[myArray objectAtIndex:indexPath.row];
        cell.detailTextLabel.text=@"All the stores";

return cell;
}

What i am supposing to see, is a text and a detail text. However, i only see the main text. Thanx in advance.

  • 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-06T03:33:28+00:00Added an answer on June 6, 2026 at 3:33 am

    It is possible that the storyboard contains a prototype cell with the same reuse identifier, and it is configured to be a different style (i.e. to not have a subtitle). For effective debugging, you could remove the call for the tableview to give you a dequeued cell, and freshly instantiate one every time to see if your fresh cell is working. However, I recommend going the other way, and configuring a prototype cell in the storyboard, and using it’s config (possibly even raising an exception if it is not present).

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

Sidebar

Related Questions

I know this issue has been touched on here but I have not found
I know this issue being mentioned before, but resolutions there didn't apply. I'm having
I know there are tons of threads regarding this issue but I have not
I know this is a fairly contentious issue amongst programmers, but when developing I
I know that this kind of issue is most discussed. But I would like
I don't know what could be causing this issue, but for some reason, elements
Heyy can somebody help me ? i have this issue that still do know
I know there have been similar questions posted but I think the issue I'm
I already posted this issue but had edited it so many times I thought
I know that there are several threads posted about this issue, however I believe

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.