Note that there are some explanatory texts on larger screens.

plurals
  1. POHeight of UIScrollView in UITableview shorter than table height
    primarykey
    data
    text
    <p>I have a pretty standard <code>UITableView</code> with only 1 section. My problem is that the length of the <code>UIScrollView</code> (That the <code>UITableView</code> inherits) seems to be shorter than the table itself. My table loads and presents the data as it should, seen here:</p> <p><img src="https://i.stack.imgur.com/fK9Kq.png" alt=""></p> <p>Yet, when I scroll to the bottom, the scroll bar on the right is displaying an incorrect height for the scroll view. The scroll bar stops scrolling about halfway down the <code>UITableView</code>, where it starts to contract. It is reaching the bottom of the data, but there is unnecessary whitespace at the bottom of the table that I would like to get rid of, as seen here:</p> <p><img src="https://i.stack.imgur.com/CYNSh.png" alt=""></p> <p>The table is pretty standard, for I am using the Subtitle Style table view cell. Therefore, I am not implementing <code>heightForRowAtIndexPath</code>. I am using a custom font, but even when I take it out I get the same results. So I am unsure why this is happening?</p> <p>This class is very simple. The only methods I am implementing are:</p> <pre><code>-(void)viewDidLoad - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { </code></pre> <p><strong>EDIT</strong> I now realize that after I make a selection and then select back on the navigation bar, the table displays properly as it should. Something that gets called upon hitting back on the navigation bar fixes it and I have no clue as to what it is!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload