I currently have a UITableview, I have enough data that cannot be shown completely on the screen, so the user will have to scroll through the table view.
The problem that I see is that when I look all the way to the end, the last item shown in the table view is not really the last item however, if I press touch and try to drag it very hard, I can see the last item, but if I let go of my finger, the scroll will return to the item that appears below, but not the last item
How can I ensure that the scroll size of the table is really the same as the container?
I have overridden two methods:
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath - (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section
I can do:
- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
Really tall, but when scrolling down, this is not the last element.
source share