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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:18:27+00:00 2026-05-24T05:18:27+00:00

I am trying to see the whole tableview when user scrolls totally but the

  • 0

I am trying to see the whole tableview when user scrolls totally but the problem is my table isn’t getting displayed till the very bottom and bouncing somewhere before that and not showing the whole data.
Here’s the code i am using to initailze the table view :

tableView = [[UITableView alloc]initWithFrame:CGRectMake(0,0,newViewFrame.size.width,newViewFrame.size.height) style:UITableViewStyleGrouped];
    tableView.delegate = self;
    tableView.dataSource = self;
    tableView.contentSize = CGSizeMake(newViewFrame.size.width,screenFrame.size.height*1.5); 
    [tableView setCanCancelContentTouches:NO];
    tableView.clipsToBounds = YES;    // default is NO, we want to restrict drawing within our scrollview
    tableView.indicatorStyle = UIScrollViewIndicatorStyleBlack;
    [tableView setScrollEnabled:YES];
    [tableView setPagingEnabled:YES];
    //[tableView setAlwaysBounceVertical:NO];
    [tableView setShowsVerticalScrollIndicator:YES];
    [self.view addSubview:tableView];

Please let me know if there is something i am doing wrong or i skipped??
Thanks,

  • 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-24T05:18:28+00:00Added an answer on May 24, 2026 at 5:18 am

    @Ashutosh:

    I feel that the issue is somewhere related with the height or contentSize of your tableView.

    It should be less than or equal to the viewController’s view height. I prefer to keep it slightly less if you have a navigation controller on the same view.

    And because you tableView height is more, it reaches maximum limit of the view and then bounces back.

    So please try making the initial height of the tableView less than or equal to that of the main view.

    EDIT:

    Also try removing the statement where you specify the contentSize of the table. I think is not very much necessary to specify that.

    Remove or Comment out this statement an try:

     tableView.contentSize = CGSizeMake(newViewFrame.size.width,screenFrame.size.height*1.5);
    

    Hope this helps you.

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

Sidebar

Related Questions

I'm trying to see the value of a variable, but the debugger shows me
I am trying to start activity at start up of phone but whole program
I have spent the whole day trying to make my application use threads but
I'm trying to use jquery load function, but I can't get the whole content
In my app user is trying to see the number of activity in a
After trying to make a while(bool) loop and it failing because I couldn't see
While trying to compile a 64 bit linux kernel using gcc, I see the
I'm trying to see if there's a way to get a consistent unit test
I'm trying to see if anyone knows how to cluster some Lat/Long results, using
I am trying to see from an SQL console what is inside an Oracle

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.