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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:17:26+00:00 2026-05-16T00:17:26+00:00

I have an instance of UITableView with two sections, the first with one row

  • 0

I have an instance of UITableView with two sections, the first with one row and the second with up to eight rows. The second section frequently goes off the screen and the user can scroll the whole table view down to see these at will.

However I would like the first section to always remain in view because its information is useful. I’d like only the second section to be scrollable, the first section remaining stationary and in view.

What do you suggest?

  • 1 1 Answer
  • 1 View
  • 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-16T00:17:27+00:00Added an answer on May 16, 2026 at 12:17 am

    You cannot scroll each section separately. However according to your description is sounds like your first section isn’t really a section and should actually be an header for the second section. When you create an header for a section, the header will always remain visible. To create a custom view section you need to implement viewForHeaderInSection and heightForHeaderInSection defined in the UITableViewDelegate protocol.

    Here’s an example

    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
    {
          return 60;
    }
    
    
    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
    {
          UIView *myHeader = [[[UIView alloc] initWithFrame:CGRectMake(0,0,60,320)] autorelease];
          myHeader.backgroundColor = [UIColor redColor];
          UILabel *myLabel = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,30,150)] autorelease];
          myLabel.text = @"Testing header view";
          [myHeader addSubView:myLabel];
          return myHeader;
    
    }
    

    This way you can create a table view with one section and an header for that section that will remain in view even when the table is scrolled.

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

Sidebar

Related Questions

I have two UITableview. The first one shows 3 sections with 3 row each
I have a very simple UITableView that has 3 sections, and 3 rows per
I have two instances of UITableView in one app, and the problem is that
I have an instance of ObservableCollection bound to a WPF listbox with two separate
I have a uitableview 'A' which has cells, on clicking one of the cell,
I have a UITableView instance variable. I want to be able to register my
I have a problem when trying to delete rows from my UITableView: The UITableView
I have a UITableView instance tableView that displays data from a server. The tableView
I have an instance of a UITableView, and a separate class that adheres to
I have a project in which I need to display multiple UITableView instances inside

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.