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

  • Home
  • SEARCH
  • 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 8801359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:48:51+00:00 2026-06-14T00:48:51+00:00

I want to create a tableView that looks like this. (well, with different titles

  • 0

I want to create a tableView that looks like this. (well, with different titles ;))

enter image description here

I saw those in a few apps so far and I cant figure out how to make those. Because of the tint (like in the navigation bar) and the similar appearance in various apps I guess that those are not custom cells but something different.

One more question (in case they are custom cells). When I change the cell heigh/background of a prototype cell in a storyboard tableview, it does not show in the app until I create an extra customcell class for it. What am i missing?

if (indexPath.row == 0 || indexPath.row == 7)
{
    static NSString *CellIdentifier = @"TitleCell";
    UITableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    //heigh does not change -.-
    if (cell1 == nil){
        cell1 = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }
    return cell1;
}
else {
static NSString *CellIdentifier = @"FirstCell";
UITableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell1 == nil){
    cell1 = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell1.textLabel.text = [[articles objectAtIndex:indexPath.row]objectForKey:labelkey1];
  • 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-14T00:48:52+00:00Added an answer on June 14, 2026 at 12:48 am

    They are section headers.

    You can add section header by adding this method:

    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
    { 
         return @"My title";
    }
    

    For adding multiple sections you need to pass a suitable value from the following method:

    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {
        return 7;
    }
    

    Pass the number of rows in each section:

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    {
       return 2;
    }
    

    From the above code you’ll get 7 sections with 2 rows in each. You need to handle the sections, rows and their datas accordingly.

    tableView:titleForHeaderInSection:

    Asks the data source for the title of the header of the specified
    section of the table view.
    – (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section Parameters

    tableView

    The table-view object asking for the title.  section
    
    An index number identifying a section of tableView .
    

    Return Value

    A string to use as the title of the section header. If you return nil
    , the section will have no title. Discussion

    The table view uses a fixed font style for section header titles. If
    you want a different font style, return a custom view (for example, a
    UILabel object) in the delegate method
    tableView:viewForHeaderInSection: instead. Availability

    Available in iOS 2.0 and later.
    

    See Also

    – tableView:titleForFooterInSection:
    

    Declared In UITableView.h

    Refer :

    1. UITableViewDataSource
    2. UITableView
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a tableview like this. All sections have custom section header
I want to create a view like this in my iPhone App: I do
I want to create an app like Facebook timeline, so want to know that
I want create wordpress website into which I want create user management... That means
i want create a custom json data from the mssql 2008 results so that
i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
I want to create a new field (or two) in my table that is
Want to create an alarm application, that will play a music file at a
In my application, I want to cache the displayed data in tableview so that
I'm trying to create a simple chat application for iOS. It currently looks like

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.