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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:24:09+00:00 2026-05-30T06:24:09+00:00

I have a UITableView inside of a UIScrollView. While this isn’t ideal, it was

  • 0

I have a UITableView inside of a UIScrollView.

While this isn’t ideal, it was “necessary” since I wanted to put another custom view on top of the table, which is scrolled off using the scroll view. The table view is used in many different parts of my app and would be great to keep it encapsulated and reusable.

The problem now is that because I no longer utilize the scrolling of UITableView itself (it is sized big enough to display all its cells, and then placed inside the scroll view), I lose the on-demand loading of cells. This makes for unacceptable performance when my table view has more than a few cells.

What is the best way to set up something like this without losing dynamic cell loading?

The only way I can think of is making the whole thing a table view, and making my top custom view just another cell. But this would mean I can’t as cleanly reuse my UITableView.

  • 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-30T06:24:10+00:00Added an answer on May 30, 2026 at 6:24 am

    As long as your tableView is inside a scrollView, you’ll have this problem since the whole tableView has to be drawn, and hence all the cells have to be allocated.

    What I suggest is to add the view as a header to your tableView using – tableView:viewForHeaderInSection: and – tableView:heightForHeaderInSection: in your UITableViewDelegate.

    This won’t be quite as clean just putting the tableView inside another view, but it shouldn’t be as bad as implementing the additional view as a cell, since you won’t have to mess with methods like cellForRowAtIndexPath:.

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

Sidebar

Related Questions

I have a non scrolling UITableView inside of a larger UIScrollView. Since the table
I have put an UITableView inside a UIViewController and have copied code from UITableViewController
Inside each UITableViewCell of my UITableView , I have a UIScrollView . The scroll
I have a UITableView that I am placing inside a TabView. I am trying
I have UITableView.when i click on it's 1 st row one another UITableView opens
I have a UITableView inside of a View created from a NIB. the table
I have a UITableView with 3 sections inside of a UIViewController. Is it possible
I have a UITableView as a subview of my UIScrollVIew , which is the
I have these delegate method for a tableview inside a class: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
I have a UITableView with custom cells. Naturally, in cellForRowAtIndexPath I try to dequeue

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.