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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:50:21+00:00 2026-05-27T10:50:21+00:00

I have a tableview that has groups. I would like to add a dummy

  • 0

I have a tableview that has groups. I would like to add a dummy cell at the top of each group, but not add it to the data. I dont want it saved. So if the top cell is clicked, its data passed will be blank and I can handle the passed view differently. I currently am configuring the cells manually.

So if group one had two entries, the display of those two entries would be prepended with a fake entry at what would be index 0

Below is a preview of what I am trying to do.

enter image description here

PS: Can one cell have a different disclosure icon? Does that break Interface Guidelines?

  • 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-27T10:50:22+00:00Added an answer on May 27, 2026 at 10:50 am

    It would be something like this, you are not really adding anything to your model, you are just modifying your view:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
        static NSString *CellIdentifier = @"Cell";
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        }
    
        if ([indexPath row] == 0) {
            //And any other default behavior
            [[cell textLabel] setText:@""];
        }
        else{
            //Your code for each cell
    
    
        }
        return cell;
    }
    

    The HIG doesn’t mention anything about having different disclosure icons:

    iOS includes some table-view elements that can extend the functionality of table views. Unless noted otherwise, these elements are suitable for use with table views only.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to have a tableview header that can remain at the top of
I'm not sure what is going on but I have a list that has
I have an app that has a TableView, NavigationView and TabBar running together. There
Say I have a tableview class that lists 100 Foo objects. It has: @property
I have a tableView that needs to be updated after information has been inserted
I have a mac app that uses tableView that has some rows.On taping(single tap
I have a navigation view with a cell that has something as simple as
I've got a NavCtrl and on top of that I have a TableView/ctrl, then
Any help you can offer would be appreciated. I have a app that has
I have a tableview which each row has 4 images. I have implemented a

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.