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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:11:20+00:00 2026-06-12T09:11:20+00:00

I am having a very difficult time understanding this. I have a UITableView which

  • 0

I am having a very difficult time understanding this. I have a UITableView which frameHeight is set at 200. Although I’ve set numberOfRows to 0, this UITableView still scrolls, any idea why? My understanding is that it will only scroll if the contentView height is bigger than the frameHeight right? But in the case of the numberOfRows of 0, the contentView should be 0?

  • 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-12T09:11:21+00:00Added an answer on June 12, 2026 at 9:11 am

    First Solution use UITableViewStyleGrouped style

    Because by default it is set to UITableViewStylePlain which shows empty cells too after displaying filled cells.

    Second Indirect Way

    if (table.contentSize.height < table.frame.size.height) {
       table.scrollEnabled = NO;
     }
    else {
       table.scrollEnabled = YES;
     }
    

    You can run this code after calling reloadData on the table, and it calculates the right sizes and appears to work.

    Edit 1

    Another way is to disable Bounce -> Bounces/ Bounce Vertically

    Hope this will solve your problem

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

Sidebar

Related Questions

I am having a very difficult time setting up a binding which I think
I have been having a very difficult time editing my .htaccess file to do
I have been having a very difficult time with android apps. I'm using Eclipse,
So, I am having a very difficult time explaining my problem, I hope this
I'm having a very difficult time understanding how a c# form can populate and
I'm trying to use this library (which looks very nice) but I'm having difficulty
I'm trying to learn LINQ to SQL but having a very difficult time. I
I am using MYSQL Server version: 5.5.16 and having a very difficult time establishing
I am having a very difficult time handling null returns in DB2. I've tried
This is probably not a very difficult question to answer. I'm having trouble with

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.